mpich: add enableDebug option
This commit is contained in:
parent
87809ef903
commit
196b681586
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user