Skip to content
Permalink
Browse files

Remove any inadvertent use of -march=native from DYNAMIC_ARCH builds

from #2143, -march=native precludes use of more specific options like -march=skylake-avx512 in individual kernels, and defeats the purpose of dynamic arch anyway.
  • Loading branch information...
martin-frbg committed Jun 10, 2019
1 parent ff1bfe7 commit 1f4b6a5d5d2c1e3aaf7ca1da6720825cd075391f
Showing with 2 additions and 1 deletion.
  1. +2 −1 cmake/arch.cmake
@@ -73,7 +73,8 @@ if (DYNAMIC_ARCH)
endif ()
if (NOT NO_AVX512)
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
endif ()
string(REGEX REPLACE "-march=native" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
endif ()
if (DYNAMIC_LIST)
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
endif ()

0 comments on commit 1f4b6a5

Please sign in to comment.
You can’t perform that action at this time.