Skip to content

Commit

Permalink
remove ninja job pool. Let user define.
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 17, 2024
1 parent 651e4f1 commit 7e4655b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/mumps.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
set_property(GLOBAL PROPERTY JOB_POOLS Njobs=3)
cmake_host_system_information(RESULT _memfree QUERY AVAILABLE_PHYSICAL_MEMORY)
# for low memory systems

set(_mi ${mumps_SOURCE_DIR}/include/)
set(_s ${mumps_SOURCE_DIR}/src/)

Expand Down Expand Up @@ -226,9 +222,7 @@ endif()
set(CINT_SRC ${_s}mumps_c.c)

add_library(${a}mumps ${CINT_SRC} ${SRC} ${SRC_OTHER})
if(_memfree LESS 1000) # < 1GB RAM free
set_property(TARGET ${a}mumps PROPERTY JOB_POOL_COMPILE Njobs)
endif()

target_compile_definitions(${a}mumps PRIVATE
MUMPS_ARITH=MUMPS_ARITH_${a}
${ORDERING_DEFS}
Expand Down

0 comments on commit 7e4655b

Please sign in to comment.