mpiCheckPhaseHook: change HYDRA_IFACE to lo0 on Darwin platform (#398389)

This commit is contained in:
Markus Kowalewski
2025-04-15 09:09:02 +02:00
committed by GitHub
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