First successful execution with SLURM

This commit is contained in:
2020-08-04 18:38:33 +02:00
parent 39a639ac10
commit bab4c696d8
4 changed files with 57 additions and 15 deletions

View File

@@ -3,9 +3,9 @@
, cc
, cflags ? null
, gitBranch
, blocksize ? "2048"
, particles ? "16384"
, timesteps ? "10"
, blocksize ? 2048
, particles ? 16384
, timesteps ? 10
}:
stdenv.mkDerivation {
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
makeFlags = [
"CC=${cc.cc.CC}"
"BS=${blocksize}"
"BS=${toString blocksize}"
];
installPhase = ''
@@ -35,7 +35,7 @@ stdenv.mkDerivation {
cat > $out/bin/run <<EOF
#!/bin/bash
exec $out/bin/nbody -p ${particles} -t ${timesteps}
exec $out/bin/nbody -p ${toString particles} -t ${toString timesteps}
EOF
chmod +x $out/bin/run