Skip to content

Commit

Permalink
allow cpus to pass through to the CLI (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Oct 11, 2023
1 parent e2f66cc commit a347861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions apps.awesim.org/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
base_slurm_args.concat ["--licenses", "#{licenses}"] unless licenses.empty?

def tasks_per_node
# if you request > 1 nodes, it doesn't matter how many cores you request - you get the whole node
# but srun still adheres to how many tasks per node you've requested, not what you _have_.
bc_num_slots.to_i > 1 ? [] : [ "--ntasks-per-node", "#{cores}" ]
[ "--ntasks-per-node", "#{cores}" ]
end

def any_node
Expand Down
4 changes: 1 addition & 3 deletions ondemand.osc.edu/apps/bc_desktop/submit/slurm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
base_slurm_args.concat ["--licenses", "#{licenses}"] unless licenses.empty?

def tasks_per_node
# if you request > 1 nodes, it doesn't matter how many cores you request - you get the whole node
# but srun still adheres to how many tasks per node you've requested, not what you _have_.
bc_num_slots.to_i > 1 ? [] : [ "--ntasks-per-node", "#{cores}" ]
[ "--ntasks-per-node", "#{cores}" ]
end

def any_node
Expand Down

0 comments on commit a347861

Please sign in to comment.