Improvement the experiment based on CREAMS

This commit is contained in:
Pedro Martinez
2020-10-01 16:48:35 +02:00
parent 5cbc8e4fbb
commit 6ae71cc5e9
5 changed files with 44 additions and 203 deletions

View File

@@ -1,6 +1,7 @@
{
stdenv
, nodes
, granul ? 0
, nprocz ? 0
, gitBranch
}:
@@ -8,17 +9,20 @@ stdenv.mkDerivation rec {
name = "creams-input";
# src = /home/Computational/pmartin1/creams-simplified;
src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/pmartin1/creams-simplified.git";
ref = "${gitBranch}";
};
phases = [ "unpackPhase" "installPhase" ];
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
patchPhase = ''
patchShebangs SodTubeBenchmark/gridScript.sh
'';
installPhase = ''
pushd SodTubeBenchmark
bash gridScript.sh 0 0 $((${toString nodes}*48)) 0
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
popd
mkdir -p $out