Skip to content

Commit 6a81136

Browse files
committed
AVX512 flags in GCC are now closer to clang's
1 parent a8e4195 commit 6a81136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/cmake/gnu.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ELSE ()
1717
_SET_IF_EMPTY(FLAGS_SSE42 "-msse4.2")
1818
_SET_IF_EMPTY(FLAGS_AVX "-mavx")
1919
_SET_IF_EMPTY(FLAGS_AVX2 "-mf16c -mavx2 -mfma -mlzcnt -mbmi -mbmi2")
20-
_SET_IF_EMPTY(FLAGS_AVX512 "-mavx512f -mavx512dq -mavx512cd -mavx512bw -mavx512vl -mf16c -mavx2 -mfma -mlzcnt -mbmi -mbmi2 -mprefer-vector-width=256")
20+
_SET_IF_EMPTY(FLAGS_AVX512 "-march=skylake-avx512")
2121
ENDIF ()
2222

2323
OPTION(EMBREE_IGNORE_CMAKE_CXX_FLAGS "When enabled Embree ignores default CMAKE_CXX_FLAGS." ON)

0 commit comments

Comments
 (0)