Skip to content

Commit

Permalink
set cpus-per-task for non exclusive jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jt79 committed Jul 17, 2023
1 parent 55574b8 commit e45ddfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mycluster/schedulers/templates/slurm.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
{% if exclusive %}
# Exclusive node use
#SBATCH --exclusive
{% else %}
#SBATCH --cpus-per-task={{num_threads_per_task}}
{% endif %}
# Do not requeue job on node failure
#SBATCH --no-requeue
Expand Down

0 comments on commit e45ddfd

Please sign in to comment.