diff --git a/bsc/garlic/exp/nbody/bs.nix b/bsc/garlic/exp/nbody/bs.nix index 979b925..0b41d34 100644 --- a/bsc/garlic/exp/nbody/bs.nix +++ b/bsc/garlic/exp/nbody/bs.nix @@ -37,7 +37,6 @@ let nixPrefix = "/gpfs/projects/bsc15/nix"; exclusive = false; ntasks = "${toString conf.ntasks}"; - chdirPrefix = "/home/bsc15/bsc15557/bsc-nixpkgs/out"; }; srun = app: srunWrapper { diff --git a/bsc/garlic/sbatch.nix b/bsc/garlic/sbatch.nix index 13092ba..41bffb1 100644 --- a/bsc/garlic/sbatch.nix +++ b/bsc/garlic/sbatch.nix @@ -5,7 +5,7 @@ { app -, chdirPrefix +, chdirPrefix ? "." , nixPrefix ? "" , argv ? "" , binary ? "/bin/run" @@ -14,6 +14,7 @@ , nodes ? null , exclusive ? true # By default we run in exclusive mode , qos ? null +, reservation ? null , time ? null , output ? "job_%j.out" , error ? "job_%j.err" @@ -60,6 +61,7 @@ stdenv.mkDerivation rec { + sbatchEnable "exclusive" exclusive + sbatchOpt "time" time + sbatchOpt "qos" qos + + sbatchOpt "reservation" reservation + optionalString (extra!=null) extra + ''