Skip to content

Commit

Permalink
ornladios#725 enable test with mpi oversubscribe
Browse files Browse the repository at this point in the history
OMPI_MCA_rmaps_base_oversubscribe=yes must be passed to cmake or be an
env variable
  • Loading branch information
williamfgc committed Oct 17, 2018
1 parent cefab22 commit 83b0a6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,14 @@ if(ADIOS2_HAVE_MPI)
cmake_host_system_information(RESULT ncores QUERY NUMBER_OF_PHYSICAL_CORES)
message("-- Found MPI nprocs = " ${ncores})
if(ncores LESS 4)
message("-- Reducing MPI nprocs to " ${ncores} " for tests")
set(MPIEXEC_MAX_NUMPROCS ${NPROCS})
if (NOT "$ENV{OMPI_MCA_rmaps_base_oversubscribe}" STREQUAL "yes")
message("-- Reducing MPI nprocs to " ${ncores} " for tests")
set(MPIEXEC_MAX_NUMPROCS ${ncores})
else()
message("-- Found OMPI_MCA_rmaps_base_oversubscribe")
set(MPIEXEC_MAX_NUMPROCS 4)
message("-- Setting MPI nprocs = " ${MPIEXEC_MAX_NUMPROCS})
endif()
endif()
# Workaround for MPI forcing the link of C++ bindings
add_definitions(-DOMPI_SKIP_MPICXX -DMPICH_SKIP_MPICXX)
Expand Down

0 comments on commit 83b0a6b

Please sign in to comment.