summaryrefslogtreecommitdiff
path: root/mk/rte.cpuflags.mk
diff options
context:
space:
mode:
authorXiaoyun Li <xiaoyun.li@intel.com>2017-11-03 20:47:23 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-11-07 01:16:03 +0100
commitd35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7 (patch)
tree08ee509887a1991f9956d9f5509b4ea9fe01bf5e /mk/rte.cpuflags.mk
parente3a64deae2d58307c8f7bea15e6661f5150853d5 (diff)
downloaddpdk-d35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7.zip
dpdk-d35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7.tar.gz
dpdk-d35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7.tar.xz
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 <xiaoyun.li@intel.com>
Diffstat (limited to 'mk/rte.cpuflags.mk')
-rw-r--r--mk/rte.cpuflags.mk14
1 files changed, 0 insertions, 14 deletions
diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk
index 8a7a1e7..a813c91 100644
--- a/mk/rte.cpuflags.mk
+++ b/mk/rte.cpuflags.mk
@@ -134,20 +134,6 @@ endif
MACHINE_CFLAGS += $(addprefix -DRTE_MACHINE_CPUFLAG_,$(CPUFLAGS))
-# 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)
-MACHINE_CFLAGS += -DCC_SUPPORT_AVX512F
-endif
-endif
-
-# 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)
-MACHINE_CFLAGS += -DCC_SUPPORT_AVX2
-endif
-
# To strip whitespace
comma:= ,
empty:=