Merge branch 'master' of bscpm02.bsc.es:rarias/bsc-nixpkgs into master

This commit is contained in:
Rodrigo Arias 2020-08-25 13:00:10 +02:00
commit 67ac951289
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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
+
''