Use AVX2 as default even on AVX512 systems 21/18221/2
authorDamjan Marion <damarion@cisco.com>
Tue, 12 Mar 2019 18:59:22 +0000 (19:59 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 12 Mar 2019 19:57:26 +0000 (19:57 +0000)
commit6459315569f49bcc2b3572f169192ded7323598f
tree902c010613326a07c8516994b9455cd44cebb849
parent176bcb28d845f74be5782fc676d0dd1adf0c12bb
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>
src/vppinfra/cpu.h