mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-16 09:28:35 +03:00
Merge pull request #333444 from markuskowa/fix-mpi-check-hook
mpiCheckPhaseHook: update to use openmpi-5 compatible parameters
This commit is contained in:
commit
b909e2c80d
@ -33,10 +33,17 @@ setupMpiCheck() {
|
||||
|
||||
case $mpiType in
|
||||
openmpi)
|
||||
# make sure the test starts even if we have less than the requested amount of cores
|
||||
# Note, that openmpi-5 switched to using PRRTE.
|
||||
# Thus we need to set PRTE_MCA_* instead of OMPI_MCA_*.
|
||||
# We keep the openmpi-4 parameters for backward compatability.
|
||||
|
||||
# Make sure the test starts even if we have less than the requested amount of cores
|
||||
export OMPI_MCA_rmaps_base_oversubscribe=1
|
||||
export PRTE_MCA_rmaps_default_mapping_policy=node:oversubscribe
|
||||
|
||||
# Disable CPU pinning
|
||||
export OMPI_MCA_hwloc_base_binding_policy=none
|
||||
export PRTE_MCA_hwloc_default_binding_policy=none
|
||||
;;
|
||||
MPICH)
|
||||
# Fix to make mpich run in a sandbox
|
||||
|
Loading…
Reference in New Issue
Block a user