1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00

Merge pull request #121983 from nbren12/mpich-mac-fix

mpich: fix darwin build
This commit is contained in:
markuskowa 2021-05-07 11:26:31 +02:00 committed by GitHub
commit d93bcc481b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View file

@ -1,15 +1,13 @@
{ stdenv, lib, fetchurl, perl, gfortran
, openssh, hwloc, autoconf, automake, libtool
# device options are ch3 or ch4
, device ? "ch4"
# backend option are libfabric or ucx
, ch4backend ? "libfabric"
, ucx, libfabric
# either libfabric or ucx work for ch4backend on linux. On darwin, neither of
# these libraries currently build so this argument is ignored on Darwin.
, ch4backend
# Process manager to build
, withPm ? "hydra:gforker"
} :
assert (ch4backend == "ucx" || ch4backend == "libfabric");
assert (ch4backend.pname == "ucx" || ch4backend.pname == "libfabric");
stdenv.mkDerivation rec {
pname = "mpich";
@ -45,8 +43,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildInputs = [ perl gfortran openssh hwloc ]
++ lib.optional (ch4backend == "ucx") ucx
++ lib.optional (ch4backend == "libfabric") libfabric;
++ lib.optional (!stdenv.isDarwin) ch4backend;
doCheck = true;

View file

@ -16715,7 +16715,9 @@ in
libmpc = callPackage ../development/libraries/libmpc { };
mpich = callPackage ../development/libraries/mpich { };
mpich = callPackage ../development/libraries/mpich {
ch4backend = libfabric;
};
mstpd = callPackage ../os-specific/linux/mstpd { };