Skip to content

Commit

Permalink
always specifu GPU number
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Apr 2, 2021
1 parent acf15b8 commit aee4fb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/radical/pilot/agent/launch_method/srun.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def construct_command(self, t, launch_script_hop):
mapping = '--exclusive --cpu-bind=none ' \
+ '--nodes %d ' % n_nodes \
+ '--ntasks %d ' % n_tasks \
+ '--gpus %d ' % (n_gpus * n_tasks) \
+ '--cpus-per-task %d' % n_task_threads

# check that gpus were requested to be allocated
Expand Down

0 comments on commit aee4fb8

Please sign in to comment.