Skip to content

Commit

Permalink
Merge pull request #938 from williamfgc/oversubscribe
Browse files Browse the repository at this point in the history
#725 enable test with mpi oversubscribe
  • Loading branch information
williamfgc authored Oct 17, 2018
2 parents 7fb6a6f + 22e44e5 commit 6eb9f0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,11 @@ adios_option(SysVShMem "Enable support for SysV Shared Memory IPC on *NIX" AUTO)
include(${PROJECT_SOURCE_DIR}/cmake/DetectOptions.cmake)

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(MPIEXEC_MAX_NUMPROCS LESS 4 AND "$ENV{OMPI_MCA_rmaps_base_oversubscribe}")
message(STATUS "OpenMPI oversubscribe detected: raising MPIEXEC_MAX_NUMPROCS to 4 for testing")
set(MPIEXEC_MAX_NUMPROCS 4 CACHE STRING "" FORCE)
endif()

# Workaround for MPI forcing the link of C++ bindings
add_definitions(-DOMPI_SKIP_MPICXX -DMPICH_SKIP_MPICXX)
endif()
Expand Down

0 comments on commit 6eb9f0f

Please sign in to comment.