Skip to content
Snippets Groups Projects
Commit 45ac4a96 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Make tests work with OpenMPI 3.0

OpenMPI 3.0 by default does not allow running with more processes than CPUs
parent 237c784e
Branches
Tags
No related merge requests found
......@@ -810,6 +810,12 @@ if ( WALBERLA_BUILD_WITH_MPI AND NOT WALBERLA_CXX_COMPILER_IS_MPI_WRAPPER )
endif ( )
endif ( )
endif ( )
# 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)
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" )
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