projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1bfe7
)
Remove any inadvertent use of -march=native from DYNAMIC_ARCH builds
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Mon, 10 Jun 2019 07:50:13 +0000
(09:50 +0200)
committer
GitHub
<noreply@github.com>
Mon, 10 Jun 2019 07:50:13 +0000
(09:50 +0200)
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.
cmake/arch.cmake
patch
|
blob
|
history
diff --git
a/cmake/arch.cmake
b/cmake/arch.cmake
index
470ea2a
..
b4547b7
100644
(file)
--- a/
cmake/arch.cmake
+++ b/
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 ()