bscpkgs/garlic/apps/hpcg/default.nix
Raúl Peñacoba 1a6075a2b1 hpcg: add first granularity/scalability exps for tampi+isend+oss+task
- oss.nix runs valid hpcg layouts whereas slices.nix does not
2021-04-16 09:32:28 +02:00

42 lines
534 B
Nix

{
stdenv
, cc
, nanos6
, mcxx
, mpi
, tampi
, gitBranch
}:
stdenv.mkDerivation rec {
name = "hpcg";
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/rpenacob/garlic-hpcg.git";
ref = "${gitBranch}";
};
# prePatch = ''
# #export NIX_DEBUG=6
# '';
buildInputs = [
cc nanos6 mcxx mpi tampi
];
makeFlags = [
"CC=${cc.CC}"
"CXX=${cc.CXX}"
];
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin/
'';
programPath = "/bin/xhpcg";
}