Skip to content
Snippets Groups Projects
Commit 4dd07c1c authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

make relevant changes for our system

parent 8588e5a6
No related branches found
No related tags found
No related merge requests found
<%-
email = ENV['USER']
if !email.include? '@'
email = email + '@uab.edu'
end
-%>
--- ---
batch_connect: script:
template: vnc job_environment:
USER: "<%= ENV['USER'] %>"
native:
- "-N 1"
- "-n <%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
- "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G"
- "--partition=<%= bc_partition %>"
- "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
- "--job-name=ood-vnc"
<%- if bc_partition.include? "pascalnodes" or bc_partition.include? "amperenodes" -%>
- "--gres=gpu:<%= bc_num_gpus.blank? ? 1 : bc_num_gpus.to_i %>"
<%- end -%>
<%- if bc_email_on_started == "1" -%>
- "--mail-type=BEGIN"
- "--mail-user=<%= email %>"
<%- end -%>
<%- if bc_email_on_started == "1" -%>
- "--mail-type=BEGIN"
- "--mail-user=<%= email %>"
<%- end -%>
<%- if bc_reservation != "" -%>
- "--reservation=<%= bc_reservation %>
<%- end -%>
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