From febcde7d5bcf274bf5cae269925dabe6dd51561e Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Mon, 25 Sep 2023 14:36:52 -0500
Subject: [PATCH] Add table for partitions

---
 form.js | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/form.js b/form.js
index ef6e71c..d1f99b8 100644
--- a/form.js
+++ b/form.js
@@ -1,3 +1,19 @@
+const table = {
+  "interactive": { "max_cpu": 48, "max_hour": 2, "max_gpu": -1 },
+  "express": { "max_cpu": 48, "max_hour": 2, "max_gpu": -1 },
+  "short": { "max_cpu": 48, "max_hour": 12, "max_gpu": -1 },
+  "pascalnodes": { "max_cpu": 28, "max_hour": 12, "max_gpu": 4 },
+  "pascalnodes-medium": { "max_cpu": 28, "max_hour": 48, "max_gpu": 4 },
+  "medium": { "max_cpu": 48, "max_hour": 50, "max_gpu": -1 },
+  "long": { "max_cpu": 48, "max_hour": 150, "max_gpu": -1 },
+  "intel-dcb": { "max_cpu": 24, "max_hour": 150, "max_gpu": -1 },
+  "amd-hdr100": { "max_cpu": 128, "max_hour": 150, "max_gpu": -1 },
+  "largemem": { "max_cpu": 24, "max_hour": 50, "max_gpu": -1 },
+  "largemem-long": { "max_cpu": 24, "max_hour": 150, "max_gpu": -1 },
+  "amperenodes": { "max_cpu": 128, "max_hour": 12, "max_gpu": 2 },
+  "amperenodes-medium": { "max_cpu": 128, "max_hour": 48, "max_gpu": 2 },
+}
+
 function set_partition_change_handler() {
   let partition_select = $("#batch_connect_session_context_bc_partition");
   partition_select.change( function(e) {
-- 
GitLab