Add cpu feature / target info "AVX512VBMI".

This commit is contained in:
Chang, Harry
2020-10-21 05:14:53 +00:00
committed by Hong, Yang A
parent 0102f03c9c
commit 5326b3e688
14 changed files with 204 additions and 51 deletions

View File

@@ -17,6 +17,13 @@ if (BUILD_AVX512)
endif ()
endif ()
if (BUILD_AVX512VBMI)
CHECK_C_COMPILER_FLAG(${ICELAKE_FLAG} HAS_ARCH_ICELAKE)
if (NOT HAS_ARCH_ICELAKE)
message (FATAL_ERROR "AVX512VBMI not supported by compiler")
endif ()
endif ()
if (FAT_RUNTIME)
# test the highest level microarch to make sure everything works
if (BUILD_AVX512)

View File

@@ -24,6 +24,9 @@
/* Define if building AVX-512 in the fat runtime. */
#cmakedefine BUILD_AVX512
/* Define if building AVX512VBMI in the fat runtime. */
#cmakedefine BUILD_AVX512VBMI
/* Define to 1 if `backtrace' works. */
#cmakedefine HAVE_BACKTRACE