Skip to content
Snippets Groups Projects
form.yml.erb 1.05 KiB
Newer Older
Milan Jaros's avatar
Milan Jaros committed
cluster: 
  - "karolina-slurm"
form:
  - account
  - custom_queue
Milan Jaros's avatar
Milan Jaros committed
  - bc_num_hours
Milan Jaros's avatar
Milan Jaros committed
  - num_nodes
  - num_tasks  
Milan Jaros's avatar
Milan Jaros committed
  - num_gpus
Milan Jaros's avatar
Milan Jaros committed
  - mode
Lukáš Krupčík's avatar
Lukáš Krupčík committed
  - reservation
Milan Jaros's avatar
Milan Jaros committed

attributes:
  custom_queue:
    label: "Partition"  
    widget: select
    options:
      - "<%= 'qcpu' %>"
      - "<%= 'qcpu_exp' %>"
      - "<%= 'qgpu' %>"
      - "<%= 'qgpu_exp' %>"

Milan Jaros's avatar
Milan Jaros committed
  num_nodes:
    label: "Nodes"
    value: "1"
    required: true
    
  num_tasks:
    label: "Tasks"
    value: "1"   
    required: true      

Milan Jaros's avatar
Milan Jaros committed
  num_gpus:
    label: "GPUs"  
Milan Jaros's avatar
Milan Jaros committed
    widget: select
    options:
      - "<%= 1 %>"
Milan Jaros's avatar
Milan Jaros committed
      - "<%= 2 %>"      
      - "<%= 4 %>"
Lukáš Krupčík's avatar
Lukáš Krupčík committed
      - "<%= 8 %>"      
    help: "The setting is only valid for the GPU node" 
Milan Jaros's avatar
Milan Jaros committed

  mode:
Milan Jaros's avatar
Milan Jaros committed
    widget: "select"
Milan Jaros's avatar
Milan Jaros committed
    value: "1"
    options:
      - ["Jupyter Lab", "1"]
      - ["Jupyter Notebook", "0"]
        
  account:
    label: "Project"
    widget: select
    options:
      <%- User.new.groups.each do |group| %>
      - "<%= group %>"
Lukáš Krupčík's avatar
Lukáš Krupčík committed
      <%- end %>

  reservation:
    label: "Reservation"
    value: "none"
    help: "Use only for reservation"