We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c2b0e commit 49e0f48Copy full SHA for 49e0f48
cmake/system.cmake
@@ -45,6 +45,12 @@ if (DEFINED TARGET)
45
if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
46
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
47
endif()
48
+if (${TARGET} STREQUAL "HASWELL" AND NOT NO_AVX2)
49
+ execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
50
+ if (${GCC_VERSION} VERSION_GREATER 4.7 OR ${GCC_VERSION} VERSION_EQUAL 4.7)
51
+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
52
+ endif()
53
+endif()
54
55
56
if (DEFINED TARGET)
0 commit comments