From 4dd07c1ce2a1d012d556948cd373f5cd2af79761 Mon Sep 17 00:00:00 2001
From: Matthew K Defenderfer <mdefende@uab.edu>
Date: Tue, 3 Jun 2025 01:34:11 -0500
Subject: [PATCH] make relevant changes for our system

---
 submit.yml.erb | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/submit.yml.erb b/submit.yml.erb
index c479578..ad7153b 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 -%>
-- 
GitLab