From 64f11c4a27befbd7c58f89b335c475df50168eba Mon Sep 17 00:00:00 2001
From: Lukas Krupcik <lukas.krupcik@vsb.cz>
Date: Thu, 22 Aug 2024 16:18:23 +0200
Subject: [PATCH] add reservation

---
 form.yml.erb | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/form.yml.erb b/form.yml.erb
index a05e097..eea6070 100644
--- a/form.yml.erb
+++ b/form.yml.erb
@@ -5,7 +5,10 @@ form:
   - desktop
   - account
   - custom_queue
-  - bc_num_hours 
+  - bc_num_hours
+  - num_nodes
+  - num_tasks
+  - num_gpus 
   - reservation
 
 attributes:
@@ -19,11 +22,25 @@ attributes:
       - "<%= 'qgpu' %>"
       - "<%= 'qgpu_exp' %>"
 
-  ntasks_per_node:
-    label: "NTasks Per Node"
+  num_gpus:
+    label: "GPUs"  
     widget: select
     options:
       - "<%= 1 %>"
+      - "<%= 2 %>"      
+      - "<%= 4 %>"
+      - "<%= 8 %>"
+    help: "The setting is only valid for the GPU node"
+
+  num_nodes:
+    label: "Nodes"
+    value: "1"
+    required: true
+
+  num_tasks:
+    label: "Tasks"
+    value: "1"   
+    required: true  
         
   account:
     label: "Project"
-- 
GitLab