path: root/mk/
diff options
authorXiaoyun Li <>2017-11-03 20:47:23 +0800
committerThomas Monjalon <>2017-11-07 01:16:03 +0100
commitd35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7 (patch)
tree08ee509887a1991f9956d9f5509b4ea9fe01bf5e /mk/
parente3a64deae2d58307c8f7bea15e6661f5150853d5 (diff)
eal/x86: revert select optimized memcpy at run-time
Revert the patchset run-time Linking support including the following 3 commits: Fixes: 84cc318424d4 ("eal/x86: select optimized memcpy at run-time") Fixes: c7fbc80fe60f ("test: select memcpy alignment unit at run-time") Fixes: 5f180ae32962 ("efd: move AVX2 lookup in its own compilation unit") The patchset would cause perf drop in vhost/virtio loopback performance test. Because the run-time dispatch must cost at least a function call comparing to the compile-time dispatch. And the reference cpu cycles value is small. And in the test, when using 128-256 bytes packet, it would cause 16%-20% perf drop with mergeble path. When using 256 bytes packet, it would cause 13% perf drop with vector path. Signed-off-by: Xiaoyun Li <>
Diffstat (limited to 'mk/')
1 files changed, 0 insertions, 14 deletions
diff --git a/mk/ b/mk/
index 8a7a1e7..a813c91 100644
--- a/mk/
+++ b/mk/
@@ -134,20 +134,6 @@ endif
-# Check if the compiler suppoerts AVX512
-CC_SUPPORT_AVX512F := $(shell $(CC) -mavx512f -dM -E - < /dev/null 2>&1 | grep -q AVX512 && echo 1)
-ifeq ($(CC_SUPPORT_AVX512F),1)
-ifeq ($(CONFIG_RTE_ENABLE_AVX512),y)
-# Check if the compiler supports AVX2
-CC_SUPPORT_AVX2 := $(shell $(CC) -mavx2 -dM -E - < /dev/null 2>&1 | grep -q AVX2 && echo 1)
-ifeq ($(CC_SUPPORT_AVX2),1)
# To strip whitespace
comma:= ,