From 6459315569f49bcc2b3572f169192ded7323598f Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 12 Mar 2019 19:59:22 +0100 Subject: Use AVX2 as default even on AVX512 systems Use of scalar AVX512 instructions impacts the maximum CPU frequency as they require CPU to request level 1 power license. So sparse use of AVX512 like we do, typically causes more harm than improvement. This patch makes AVX2 higher priority than AVX512, but still there is option to change it on per-node basis: vpp# set node function ethernet-input avx512 Change-Id: I42e03510a6efc1756e22fbb70e8c76d7f74f59d7 Signed-off-by: Damjan Marion --- src/vppinfra/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index ee199e2cf32..d523e88da89 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -248,7 +248,7 @@ static inline int clib_cpu_march_priority_avx2 () { if (clib_cpu_supports_avx2 ()) - return 10; + return 50; return -1; } -- cgit 1.2.3-korg