diff options
author | Damjan Marion <damarion@cisco.com> | 2019-03-12 19:59:22 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-03-12 19:57:26 +0000 |
commit | 6459315569f49bcc2b3572f169192ded7323598f (patch) | |
tree | 902c010613326a07c8516994b9455cd44cebb849 | |
parent | 176bcb28d845f74be5782fc676d0dd1adf0c12bb (diff) |
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 <damarion@cisco.com>
-rw-r--r-- | src/vppinfra/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |