File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/psij/executors/batch/slurm Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 88# SBATCH --chdir="{{.}}"
99{{/job.spec.directory}}
1010
11- {{# job.spec.inherit_environment}}
12- # SBATCH --export=ALL
13- {{/job.spec.inherit_environment}}
14- {{^job.spec.inherit_environment}}
15- # SBATCH --export=NONE
16- {{/job.spec.inherit_environment}}
17-
1811{{# job.spec.resources}}
1912 {{# exclusive_node_use}}
2013# SBATCH --exclusive
@@ -80,9 +73,17 @@ export PSIJ_NODEFILE
8073
8174
8275{{# env}}
83- # SBATCH -- export= {{name}}={{value}}
76+ export {{name}}={{value}}
8477{{/env}}
8578
79+ {{# job.spec.inherit_environment}}
80+ # SBATCH --export=ALL{{#env}},{{name}}{{/env}}
81+ {{/job.spec.inherit_environment}}
82+ {{^job.spec.inherit_environment}}
83+ # SBATCH --export={{#env}}{{name}},{{/env}}
84+ {{/job.spec.inherit_environment}}
85+
86+
8687{{! redirect output here instead of through # SBATCH directive since SLURM_JOB_ID is not available
8788when the directives are evaluated; the reason for using the job id in the first place being the
8889same as for the exit code file.}}
You can’t perform that action at this time.
0 commit comments