Skip to content
Snippets Groups Projects
Verified Commit 8a5af2a2 authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

BUG Revert back to --cpus-per-task with SLURM

Using --ntasks actually causes srun to spawn that many tasks.
So @5 with -c 10 actually ran 50!! jobs.

One extra feature from using --cpus-per-task is that each thread gets
pinned to a different CPU-thread on different CPU alignments.
Probably the best for that little extra performance gain.
parent 22ecba81
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ slurm_submit() {
cat << EOF | ${LOCALCMD}
#!/usr/bin/env bash
#SBATCH --array=${JOB_COUNT}
#SBATCH --ntasks=${CORES}
#SBATCH --cpus-per-task=${CORES}
#SBATCH -N ${NODES}
#SBATCH --mem-per-cpu=${MEM}M
#SBATCH -o ${LOGFILE}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment