Unverified Commit e0d95e12 authored by Markus Kowalewski's avatar Markus Kowalewski Committed by GitHub
Browse files

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

parents e6064cfc e4d10fa8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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@"
      ;;
+6 −1
Original line number Diff line number Diff line
{ 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