Skip to content
This repository was archived by the owner on Oct 10, 2019. It is now read-only.

Commit b40efa5

Browse files
authored
Merge pull request #54 from brianhlin/v1_18_bosco
Fix setting the number of CPUs per job
2 parents 99772d4 + 2340c75 commit b40efa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/slurm_submit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ fi
6666
# Simple support for multi-cpu attributes
6767
if [[ $bls_opt_mpinodes -gt 1 ]] ; then
6868
echo "#SBATCH --nodes=1" >> $bls_tmp_file
69-
echo "#SBATCH --ntasks=$bls_opt_mpinodes" >> $bls_tmp_file
69+
echo "#SBATCH --ntasks=1" >> $bls_tmp_file
70+
echo "#SBATCH --cpus-per-task=$bls_opt_mpinodes" >> $bls_tmp_file
7071
fi
7172

7273
# Do the local and extra args after all #SBATCH commands, otherwise slurm ignores anything

0 commit comments

Comments
 (0)