summaryrefslogtreecommitdiff
path: root/mk/rte.cpuflags.mk
diff options
context:
space:
mode:
authorZhihong Wang <zhihong.wang@intel.com>2016-01-17 22:05:11 -0500
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-01-27 21:14:52 +0100
commitb0c1e0db6dd6c4936c4b403fee7a467b0b5fce90 (patch)
tree32470b9fe5b1f47a8eca2fa703c49133a77e2947 /mk/rte.cpuflags.mk
parent308df2bfba3d238fc1d2d16cc10c84681803b408 (diff)
downloaddpdk-b0c1e0db6dd6c4936c4b403fee7a467b0b5fce90.zip
dpdk-b0c1e0db6dd6c4936c4b403fee7a467b0b5fce90.tar.gz
dpdk-b0c1e0db6dd6c4936c4b403fee7a467b0b5fce90.tar.xz
mk: predefine AVX512 macro for compiler
Predefine AVX512 macro if AVX512 is enabled by compiler. Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Diffstat (limited to 'mk/rte.cpuflags.mk')
-rw-r--r--mk/rte.cpuflags.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk
index 28f203b..19a3e7e 100644
--- a/mk/rte.cpuflags.mk
+++ b/mk/rte.cpuflags.mk
@@ -89,6 +89,10 @@ ifneq ($(filter $(AUTO_CPUFLAGS),__AVX2__),)
CPUFLAGS += AVX2
endif
+ifneq ($(filter $(AUTO_CPUFLAGS),__AVX512F__),)
+CPUFLAGS += AVX512F
+endif
+
# IBM Power CPU flags
ifneq ($(filter $(AUTO_CPUFLAGS),__PPC64__),)
CPUFLAGS += PPC64