mpich: add enableDebug option

This commit is contained in:
Rodrigo Arias 2020-08-26 19:21:14 +02:00
parent 87809ef903
commit 196b681586
2 changed files with 13 additions and 8 deletions

View File

@ -1,13 +1,16 @@
{
stdenv,
fetchurl,
perl,
gfortran,
openssh,
hwloc,
libfabric
stdenv
, fetchurl
, perl
, gfortran
, openssh
, hwloc
, libfabric
, enableDebug ? false
}:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "mpich";
version = "3.3.2";
@ -22,7 +25,8 @@ stdenv.mkDerivation rec {
"--enable-sharedlib"
"--with-device=ch4:ofi"
"--with-libfabric=${libfabric}"
];
]
++ optional enableDebug "--enable-g=dbg,log";
enableParallelBuilding = true;

View File

@ -43,6 +43,7 @@ let
osumb = callPackage ./bsc/osu/default.nix { };
mpich = callPackage ./bsc/mpich/default.nix { };
mpichDbg = callPackage ./bsc/mpich/default.nix { enableDebug = true; };
# Default Intel MPI version is 2019 (the last one)
impi = intel-mpi;