From b6a09f88874ea6ca3c8792b3e867e5d3071594bd Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sun, 10 Jan 2021 15:08:59 +0100 Subject: [PATCH] scalapack: fix building with mpich --- pkgs/development/libraries/science/math/scalapack/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/science/math/scalapack/default.nix b/pkgs/development/libraries/science/math/scalapack/default.nix index 4ef10439cc5..3b84a9d99cb 100644 --- a/pkgs/development/libraries/science/math/scalapack/default.nix +++ b/pkgs/development/libraries/science/math/scalapack/default.nix @@ -36,6 +36,9 @@ stdenv.mkDerivation rec { # make sure the test starts even if we have less than 4 cores export OMPI_MCA_rmaps_base_oversubscribe=1 + # Fix to make mpich run in a sandbox + export HYDRA_IFACE=lo + # Run single threaded export OMP_NUM_THREADS=1