From bef2d6da4ea5d67647d310a3cca5ede09385cf05 Mon Sep 17 00:00:00 2001 From: Jieqiang Wang Date: Tue, 4 Jul 2023 12:05:33 +0800 Subject: build: modify N_PREFETCH on Arm N2 to achieve best perf From GCC 12, march=armv9-a option is supported, which includes the sve and crc options needed. Furthermore, VPP L3Fwd benchmark results on N2 based servers show that N_PREFETCH set to 6 gives the best performance. Type: feature Signed-off-by: Lijian Zhang Signed-off-by: Jieqiang Wang Change-Id: I9c4fcad84d4db1189d956dabab22b26d020fbfd6 --- src/cmake/cpu.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cmake/cpu.cmake b/src/cmake/cpu.cmake index f683b62b8f4..18a1210f541 100644 --- a/src/cmake/cpu.cmake +++ b/src/cmake/cpu.cmake @@ -194,10 +194,9 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)") N_PREFETCHES 6 CACHE_PREFETCH_BYTES 64 ) - add_vpp_march_variant(neoversen2 - FLAGS -march=armv8.6-a+crc+crypto+sve2 -mtune=neoverse-n2 - N_PREFETCHES 8 + FLAGS -march=armv9-a+crypto -mtune=neoverse-n2 + N_PREFETCHES 6 CACHE_PREFETCH_BYTES 64 OFF ) -- cgit 1.2.3-korg