diff --git a/bsc/extrae/default.nix b/bsc/extrae/default.nix index 3ff4c7c..ed6aa3f 100644 --- a/bsc/extrae/default.nix +++ b/bsc/extrae/default.nix @@ -11,7 +11,7 @@ , gcc , gfortran , xml2 -#, mpi +, mpi ? null , cuda ? null #, withOpenmp ? false }: @@ -27,8 +27,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ gcc gfortran libunwind ]; - buildInputs = [ binutils-unwrapped boost boost.dev libiberty -# openmpi + buildInputs = [ binutils-unwrapped boost boost.dev libiberty mpi xml2 libxml2.dev ]; patchPhase = '' @@ -54,7 +53,8 @@ stdenv.mkDerivation rec { --with-unwind=${libunwind.dev} --with-xml-prefix=${libxml2.dev} --with-papi=${papi} - --without-mpi + ${if (mpi != null) then ''--with-mpi=${mpi}'' + else ''--without-mpi''} --without-dyninst) ''; # --with-mpi=${mpi} diff --git a/default.nix b/default.nix index 300850c..c41843f 100644 --- a/default.nix +++ b/default.nix @@ -12,13 +12,14 @@ let self.bsc = rec { # Load the current implementations - mpi = pkgs.mpich; + self.mpi = pkgs.mpich; extrae = callPackage ./bsc/extrae { + mpi = self.mpi; }; tampi = callPackage ./bsc/tampi { - mpi = mpi; + mpi = self.mpi; }; nanos6 = callPackage ./bsc/nanos6 { };