Skip to content

Commit

Permalink
Fix HPX_WITH_MORE_THAN_64_THREADS default value
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ballo committed Oct 22, 2017
1 parent a7c673b commit 5ee529f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Expand Up @@ -438,9 +438,13 @@ hpx_option(HPX_WITH_MAX_CPU_COUNT STRING
CATEGORY "Thread Manager" ADVANCED)
hpx_add_config_define(HPX_HAVE_MAX_CPU_COUNT ${HPX_WITH_MAX_CPU_COUNT})

set(HPX_MORE_THAN_64_THREADS_DEFAULT OFF)
if(HPX_WITH_MAX_CPU_COUNT GREATER 65)
set(HPX_MORE_THAN_64_THREADS_DEFAULT ON)
endif()
hpx_option(HPX_WITH_MORE_THAN_64_THREADS BOOL
"HPX applications will be able to run on more than 64 cores"
(NOT (${HPX_WITH_MAX_CPU_COUNT} LESS 65))
"HPX applications will be able to run on more than 64 cores (default: ${HPX_MORE_THAN_64_THREADS_DEFAULT})"
${HPX_MORE_THAN_64_THREADS_DEFAULT}
CATEGORY "Thread Manager" ADVANCED)
if(HPX_WITH_MORE_THAN_64_THREADS)
hpx_add_config_define(HPX_HAVE_MORE_THAN_64_THREADS)
Expand Down

0 comments on commit 5ee529f

Please sign in to comment.