Skip to content

Commit 350c62b

Browse files
SMGR: improve slurm option
1 parent e1adb99 commit 350c62b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/code_saturne/studymanager/cs_studymanager_study.py

+4
Original file line numberDiff line numberDiff line change
@@ -1988,8 +1988,12 @@ def run_slurm_batches(self, state_file_name, job_name):
19881988

19891989
# add exclusive option to batch template for
19901990
# computation with at least 6 processes
1991+
# force same processor otherwise
19911992
if nproc+1 > 5:
19921993
cmd += "#SBATCH --exclusive\n"
1994+
else:
1995+
cmd += "#SBATCH --nodes=1\n"
1996+
cmd += "#SBATCH --ntasks-per-core=1\n"
19931997

19941998
# add user defined options if needed
19951999
if self.__slurm_batch_args:

0 commit comments

Comments
 (0)