a49886ddac
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:
|
||
---|---|---|
.. | ||
acl_bld.c | ||
acl_gen.c | ||
acl_run_avx2.c | ||
acl_run_avx2.h | ||
acl_run_neon.c | ||
acl_run_neon.h | ||
acl_run_scalar.c | ||
acl_run_sse.c | ||
acl_run_sse.h | ||
acl_run.h | ||
acl_vect.h | ||
acl.h | ||
Makefile | ||
rte_acl_osdep.h | ||
rte_acl_version.map | ||
rte_acl.c | ||
rte_acl.h | ||
tb_mem.c | ||
tb_mem.h |