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

fixed the basic stuff to get an app to actually start

parent 223cab8d
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
--- ---
title: "HPC Desktop" title: "HPC Desktop"
cluster: SLURM_CLUSTER cluster: SLURM_CLUSTER
submit: "submit.yml.erb"
attributes: attributes:
desktop: "xfce" desktop: "xfce"
bc_num_slots: bc_num_slots:
...@@ -37,16 +38,10 @@ attributes: ...@@ -37,16 +38,10 @@ attributes:
- [ "<%= p %>", "<%= p %>" ] - [ "<%= p %>", "<%= p %>" ]
<%- end -%> <%- end -%>
bc_reservation:
widget: "text_field"
label: Reservation Name
value: ""
form: form:
- desktop - desktop
- bc_num_hours - bc_num_hours
- bc_partition - bc_partition
- bc_reservation
- bc_num_gpus - bc_num_gpus
- bc_num_slots - bc_num_slots
- bc_num_mems - bc_num_mems
......
<%-
email = ENV['USER']
if !email.include? '@'
email = email + '@uab.edu'
end
-%>
--- ---
batch_connect: batch_connect:
template: vnc template: "vnc"
script:
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 -%>
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