Skip to content

Commit b8ebfc9

Browse files
authored
Update system.cmake
1 parent 7c19866 commit b8ebfc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/system.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ endif ()
4646

4747
if (DEFINED TARGET)
4848
if (${TARGET} STREQUAL "COOPERLAKE" AND NOT NO_AVX512)
49-
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
49+
# if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
5050
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
5151
if (${GCC_VERSION} VERSION_GREATER 10.1 OR ${GCC_VERSION} VERSION_EQUAL 10.1)
5252
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=cooperlake")
5353
else()
5454
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
5555
endif()
56+
# elseif (${CMAKE_C_COMPILER_ID} STREQUAL "CLANG")
57+
# set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
5658
endif()
5759
endif()
5860
if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)

0 commit comments

Comments
 (0)