Info message for Open MPI binding options

This commit is contained in:
Paul R. C. Kent 2020-03-03 14:20:39 -05:00 committed by GitHub
parent f3f9b7f079
commit eea5ecf54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,7 @@ SET(GCOV_SUPPORTED FALSE)
SET(ENABLE_GCOV FALSE CACHE BOOL "Enable code coverage")
######################################################################
# enable MPI and OPNEMP if possible
# enable MPI and OPENMP if possible
######################################################################
SET(QMC_MPI 1 CACHE BOOL "Enable/disable MPI")
SET(QMC_OMP 1 CACHE BOOL "Enable/disable OpenMP")
@ -503,6 +503,7 @@ IF(QMC_MPI)
IF(${MPI_CXX_LIBRARY_VERSION_STRING} MATCHES "Open MPI")
IF(NOT MPIEXEC_PREFLAGS)
SET(MPIEXEC_PREFLAGS "--bind-to;none")
MESSAGE(STATUS "Detected Open MPI. Setting bind-to options for thread affinity in MPIEXEC_PREFLAGS.")
ELSE(NOT MPIEXEC_PREFLAGS)
IF(NOT "${MPIEXEC_PREFLAGS}" MATCHES "--bind-to")
MESSAGE(WARNING "Default Open MPI thread affinity policy may bind all the threads to a single core and "