Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow cpus to pass through to the CLI #247

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading