Add hpcg app

This commit is contained in:
Rodrigo Arias 2020-07-13 16:46:44 +02:00
parent 0b2f9df3ea
commit cd409677b0
2 changed files with 54 additions and 0 deletions

46
bsc/apps/hpcg/default.nix Normal file
View File

@ -0,0 +1,46 @@
{
stdenv
, nanos6
, mpi
, mcxx
, tampi
, icc
}:
stdenv.mkDerivation rec {
name = "hpcg";
src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/rpenacob/hpcg.git";
ref = "symgs_coloring_more_than_one_block_per_task_halos_blocking_discreete";
};
prePatch = ''
#export NIX_DEBUG=6
'';
patches = [ ./tampi.patch ];
buildInputs = [
nanos6
mpi
icc
tampi
mcxx
];
enableParallelBuilding = true;
configurePhase = ''
export TAMPI_HOME=${tampi}
mkdir build
cd build
../configure MPI_ICPC_OSS
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin/
'';
}

View File

@ -150,6 +150,14 @@ let
nanos6 = nanos6-git;
};
hpcg = callPackage ./bsc/apps/hpcg/default.nix {
mpi = intel-mpi;
nanos6 = nanos6-git;
tampi = tampi.override {
mpi = intel-mpi;
};
};
# Patched nix for deep cluster
inherit (callPackage ./bsc/nix/default.nix {
storeDir = "/nix/store";