Hardcoded NUM_CORES to get system.cmake working.
This commit is contained in:
parent
0f6bec0a32
commit
f4d1e7a265
|
@ -9,6 +9,43 @@
|
||||||
## Next it runs f_check and appends some fortran information to the files.
|
## Next it runs f_check and appends some fortran information to the files.
|
||||||
## Finally it runs getarch and getarch_2nd for even more environment information.
|
## Finally it runs getarch and getarch_2nd for even more environment information.
|
||||||
|
|
||||||
|
# List of vars set by this file and included files:
|
||||||
|
# OSNAME
|
||||||
|
# ARCH
|
||||||
|
# C_COMPILER
|
||||||
|
# BINARY32
|
||||||
|
# BINARY64
|
||||||
|
# CEXTRALIB
|
||||||
|
# F_COMPILER
|
||||||
|
# FC
|
||||||
|
# BU
|
||||||
|
# CORE
|
||||||
|
# LIBCORE
|
||||||
|
# NUM_CORES <- REQUIRED
|
||||||
|
# HAVE_MMX
|
||||||
|
# HAVE_SSE
|
||||||
|
# HAVE_SSE2
|
||||||
|
# HAVE_SSE3
|
||||||
|
# MAKE
|
||||||
|
# SGEMM_UNROLL_M
|
||||||
|
# SGEMM_UNROLL_N
|
||||||
|
# DGEMM_UNROLL_M
|
||||||
|
# DGEMM_UNROLL_M
|
||||||
|
# QGEMM_UNROLL_N
|
||||||
|
# QGEMM_UNROLL_N
|
||||||
|
# CGEMM_UNROLL_M
|
||||||
|
# CGEMM_UNROLL_M
|
||||||
|
# ZGEMM_UNROLL_N
|
||||||
|
# ZGEMM_UNROLL_N
|
||||||
|
# XGEMM_UNROLL_M
|
||||||
|
# XGEMM_UNROLL_N
|
||||||
|
# CGEMM3M_UNROLL_M
|
||||||
|
# CGEMM3M_UNROLL_N
|
||||||
|
# ZGEMM3M_UNROLL_M
|
||||||
|
# ZGEMM3M_UNROLL_M
|
||||||
|
# XGEMM3M_UNROLL_N
|
||||||
|
# XGEMM3M_UNROLL_N
|
||||||
|
|
||||||
# CPUIDEMU = ../../cpuid/table.o
|
# CPUIDEMU = ../../cpuid/table.o
|
||||||
|
|
||||||
if (DEFINED CPUIDEMU)
|
if (DEFINED CPUIDEMU)
|
||||||
|
@ -66,3 +103,6 @@ message(STATUS "GETARCH LOG: ${GETARCH_LOG}")
|
||||||
|
|
||||||
# TODO: need to read in the vars from Makefile.conf/Makefile_kernel.conf
|
# TODO: need to read in the vars from Makefile.conf/Makefile_kernel.conf
|
||||||
|
|
||||||
|
# temporarily hardcoded to get system.cmake working
|
||||||
|
set(NUM_CORES 4)
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,8 @@ if (NOT DEFINED NUM_THREADS)
|
||||||
set(NUM_THREADS ${NUM_CORES})
|
set(NUM_THREADS ${NUM_CORES})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NUM_THREADS EQUALS 1)
|
if (${NUM_THREADS} EQUAL 1)
|
||||||
# TODO: was "override USE_THREAD = 0", do we need override here? -hpa
|
# TODO: was "override USE_THREAD = 0", do we need "override" here? -hpa
|
||||||
set(USE_THREAD 0)
|
set(USE_THREAD 0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ if (DEFINED USE_THREAD)
|
||||||
endif ()
|
endif ()
|
||||||
else ()
|
else ()
|
||||||
# N.B. this is NUM_THREAD in Makefile.system which is probably a bug -hpa
|
# N.B. this is NUM_THREAD in Makefile.system which is probably a bug -hpa
|
||||||
if (${NUM_THREADS} EQUALS 1)
|
if (${NUM_THREADS} EQUAL 1)
|
||||||
unset(SMP)
|
unset(SMP)
|
||||||
else ()
|
else ()
|
||||||
set(SMP 1)
|
set(SMP 1)
|
||||||
|
|
Loading…
Reference in New Issue