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 <Lijian.Zhang@arm.com> Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com> Change-Id: I9c4fcad84d4db1189d956dabab22b26d020fbfd6
This commit is contained in:
committed by
Damjan Marion
parent
e7f34c93b1
commit
bef2d6da4e
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user