2020-09-30 17:32:49 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2020-10-01 16:48:35 +02:00
|
|
|
, granul ? 0
|
|
|
|
, nprocz ? 0
|
2020-09-30 17:32:49 +02:00
|
|
|
, gitBranch
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "creams-input";
|
|
|
|
|
|
|
|
# src = /home/Computational/pmartin1/creams-simplified;
|
|
|
|
src = builtins.fetchGit {
|
2020-12-07 13:47:17 +01:00
|
|
|
url = "ssh://git@bscpm03.bsc.es/pmartin1/creams-simplified.git";
|
2020-09-30 17:32:49 +02:00
|
|
|
ref = "${gitBranch}";
|
|
|
|
};
|
|
|
|
|
2020-10-01 16:48:35 +02:00
|
|
|
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs SodTubeBenchmark/gridScript.sh
|
|
|
|
'';
|
2020-09-30 17:32:49 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
pushd SodTubeBenchmark
|
2020-10-01 16:48:35 +02:00
|
|
|
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
|
2020-09-30 17:32:49 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -a SodTubeBenchmark $out/
|
|
|
|
'';
|
|
|
|
}
|