Skip to content
Snippets Groups Projects
Commit e68e1dc8 authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

Treat MPI_PREFLAGS as list instead of string

parent 0bd2dcc4
Branches
Tags
No related merge requests found
...@@ -815,7 +815,7 @@ endif ( ) ...@@ -815,7 +815,7 @@ endif ( )
# OpenMPI 3.0 and higher checks the number of processes against the number of CPUs # OpenMPI 3.0 and higher checks the number of processes against the number of CPUs
execute_process(COMMAND ${MPIEXEC} --version RESULT_VARIABLE mpi_version_result OUTPUT_VARIABLE mpi_version_output) execute_process(COMMAND ${MPIEXEC} --version RESULT_VARIABLE mpi_version_result OUTPUT_VARIABLE mpi_version_output)
if (mpi_version_result EQUAL 0 AND mpi_version_output MATCHES "\\(Open(RTE| MPI)\\) ([3-9]\\.|1[0-9])") if (mpi_version_result EQUAL 0 AND mpi_version_output MATCHES "\\(Open(RTE| MPI)\\) ([3-9]\\.|1[0-9])")
set ( MPIEXEC_PREFLAGS "${MPIEXEC_PREFLAGS} -oversubscribe" ) list ( APPEND MPIEXEC_PREFLAGS "-oversubscribe" )
endif() endif()
############################################################################################################################ ############################################################################################################################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment