Skip to content

Commit b909e2c

Browse files
authored
Merge pull request #333444 from markuskowa/fix-mpi-check-hook
mpiCheckPhaseHook: update to use openmpi-5 compatible parameters
2 parents dd80286 + b898495 commit b909e2c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkgs/build-support/setup-hooks/mpi-check-hook/mpi-check-hook.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ setupMpiCheck() {
3333

3434
case $mpiType in
3535
openmpi)
36-
# make sure the test starts even if we have less than the requested amount of cores
36+
# Note, that openmpi-5 switched to using PRRTE.
37+
# Thus we need to set PRTE_MCA_* instead of OMPI_MCA_*.
38+
# We keep the openmpi-4 parameters for backward compatability.
39+
40+
# Make sure the test starts even if we have less than the requested amount of cores
3741
export OMPI_MCA_rmaps_base_oversubscribe=1
42+
export PRTE_MCA_rmaps_default_mapping_policy=node:oversubscribe
43+
3844
# Disable CPU pinning
3945
export OMPI_MCA_hwloc_base_binding_policy=none
46+
export PRTE_MCA_hwloc_default_binding_policy=none
4047
;;
4148
MPICH)
4249
# Fix to make mpich run in a sandbox

0 commit comments

Comments
 (0)