Browse Source

Support DYNAMIC_LIST option in cmake

e.g. cmake -DDYNAMIC_ARCH=1 -DDYNAMIC_LIST="NEHALEM;HASWELL;ZEN" ..
original issue was #1639
tags/v0.3.6^2
Martin Kroeker GitHub 6 years ago
parent
commit
5952e586ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions
  1. +3
    -0
      cmake/arch.cmake
  2. +7
    -0
      cmake/system.cmake

+ 3
- 0
cmake/arch.cmake View File

@@ -74,6 +74,9 @@ if (DYNAMIC_ARCH)
if (NOT NO_AVX512)
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
endif ()
if (DYNAMIC_LIST)
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
endif ()
endif ()

if (NOT DYNAMIC_CORE)


+ 7
- 0
cmake/system.cmake View File

@@ -187,6 +187,13 @@ if (DYNAMIC_ARCH)
endif ()
endif ()

if (DYNAMIC_LIST)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_LIST")
foreach(DCORE ${DYNAMIC_LIST})
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYN_${DCORE}")
endforeach ()
endif ()

if (NO_LAPACK)
set(CCOMMON_OPT "${CCOMMON_OPT} -DNO_LAPACK")
#Disable LAPACK C interface


Loading…
Cancel
Save