numam-dpdk/lib/librte_acl
Konstantin Ananyev a49886ddac acl: fix native build on haswell with icc
On HSW box with icc 16.0.0 build for x86_64-native-linuxapp-icc fails with:
icc: command line warning #10120: overriding '-march=native' with '-msse4.1'
...
dpdk.org/x86_64-native-linuxapp-icc/include/rte_memcpy.h(96): error: identifier "__m256i" is undefined

The reason is that icc treats "-march=native ... -msse4.1"
in a different way, then gcc and clang.
For icc it means override all flags enabled with
'-march=native' with '-msse4.1'.
Even when '-march=native' is a superset for '-msse4.1'.
To overcome the problem add a check is SSE4.1 compilation flag already enabled.
If yes, then no need to add '-msse4.1'
Similar change for avx2 compilation option.

Fixes: 074f54ad03 ("acl: fix build and runtime for default target")

Reported-by: Declan Doherty <declan.doherty@intel.com>
Reported-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
2015-11-20 17:16:35 +01:00
..
acl_bld.c acl: improve rules sorting 2015-10-24 22:52:53 +02:00
acl_gen.c acl: introduce config parameter for performance/space trade-off 2015-01-28 17:11:26 +01:00
acl_run_avx2.c acl: use scalar method fastest for some cases 2015-01-28 17:11:25 +01:00
acl_run_avx2.h acl: deduplicate some SSE and AVX2 code 2015-01-28 17:11:25 +01:00
acl_run_neon.c acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
acl_run_neon.h acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
acl_run_scalar.c acl: deduplicate a bit of RT code 2015-01-28 17:11:25 +01:00
acl_run_sse.c acl: use scalar method fastest for some cases 2015-01-28 17:11:25 +01:00
acl_run_sse.h acl: deduplicate some SSE and AVX2 code 2015-01-28 17:11:25 +01:00
acl_run.h acl: use scalar method fastest for some cases 2015-01-28 17:11:25 +01:00
acl_vect.h acl: deduplicate some SSE and AVX2 code 2015-01-28 17:11:25 +01:00
acl.h acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
Makefile acl: fix native build on haswell with icc 2015-11-20 17:16:35 +01:00
rte_acl_osdep.h acl: remove redundant macro 2015-06-18 17:59:18 +02:00
rte_acl_version.map acl: remove old API 2015-09-03 19:22:48 +02:00
rte_acl.c acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
rte_acl.h acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
tb_mem.c acl: use setjmp/longjmp to handle alloc failures at build phase 2015-04-28 11:55:03 +02:00
tb_mem.h acl: use setjmp/longjmp to handle alloc failures at build phase 2015-04-28 11:55:03 +02:00