Skip to content
Snippets Groups Projects
Commit 1ae1e62c authored by Milan Jaros's avatar Milan Jaros
Browse files

fix form

parent 40ad822f
No related branches found
Tags v2.0.0-beta.4
No related merge requests found
......@@ -5,6 +5,8 @@ form:
- account
- custom_queue
- bc_num_hours
- num_nodes
- num_tasks
- num_gpus
- version
- working_dir
......@@ -19,6 +21,16 @@ attributes:
- "<%= 'qgpu' %>"
- "<%= 'qgpu_exp' %>"
num_nodes:
label: "Nodes"
value: "1"
required: true
num_tasks:
label: "Tasks"
value: "1"
required: true
num_gpus:
label: "GPUs"
widget: select
......
---
<%-
gpu = custom_queue.include?("gpu")
-%>
batch_connect:
template: "basic"
conn_params:
- code_server_version
script:
native:
- "-A"
- "<%= account %>"
- "-p"
- "<%= custom_queue %>"
- "-N"
- "<%= num_nodes %>"
- "-n"
- "<%= num_tasks %>"
<%- if gpu -%>
- "--gpus <%= num_gpus %>"
- "--comment='use:xorg=True'"
<%- end -%>
\ No newline at end of file
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