diff --git a/submit.yml.erb b/submit.yml.erb index c479578737da62bafd550df66a8d5fd7af9b60e5..ad7153b5271e9e8b36114353df50b039eff83a11 100644 --- a/submit.yml.erb +++ b/submit.yml.erb @@ -1,3 +1,31 @@ +<%- + email = ENV['USER'] + if !email.include? '@' + email = email + '@uab.edu' + end +-%> --- -batch_connect: - 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 -%> +<%- if bc_reservation != "" -%> + - "--reservation=<%= bc_reservation %> +<%- end -%>