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

View File

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