mpiCheckPhaseHook: change HYDRA_IFACE to lo0 on Darwin platform

This commit is contained in:
qbisi
2025-04-13 22:30:24 +08:00
parent 5de66298aa
commit e4d10fa807
2 changed files with 7 additions and 2 deletions
@@ -61,7 +61,7 @@ setupMpiCheck() {
;;
MPICH)
# Fix to make mpich run in a sandbox
export HYDRA_IFACE=lo
export HYDRA_IFACE="@iface@"
# Disable sysfs cpu topology directory discovery.
export HWLOC_XMLFILE="@topology@"
;;
@@ -1,9 +1,14 @@
{ callPackage, makeSetupHook }:
{
callPackage,
makeSetupHook,
stdenv,
}:
makeSetupHook {
name = "mpi-checkPhase-hook";
substitutions = {
iface = if stdenv.hostPlatform.isDarwin then "lo0" else "lo";
topology = ./topology.xml;
};
} ./mpi-check-hook.sh