Skip to content
Snippets Groups Projects
submit.yml.erb 493 B
Newer Older
Milan Jaros's avatar
Milan Jaros committed
<%- 
  gpu = custom_queue.include?("gpu")
  num_nodes = 1
  num_tasks = 1
Milan Jaros's avatar
Milan Jaros committed
  ng = 8
Milan Jaros's avatar
Milan Jaros committed
-%>
Milan Jaros's avatar
Milan Jaros committed

batch_connect:
Milan Jaros's avatar
Milan Jaros committed
  template: "vnc"
Milan Jaros's avatar
Milan Jaros committed
script:
  native:
    - "-A"
    - "<%= account %>"    
    - "-p"
    - "<%= custom_queue %>"
Milan Jaros's avatar
Milan Jaros committed
    - "-N"
    - "<%= num_nodes %>"
    - "-n"
    - "<%= num_tasks %>"  
Milan Jaros's avatar
Milan Jaros committed
    <%- if gpu -%>
Milan Jaros's avatar
Milan Jaros committed
    - "--gpus <%= ng %>"
Milan Jaros's avatar
Milan Jaros committed
    - "--comment='use:xorg=True'"
Lukáš Krupčík's avatar
Lukáš Krupčík committed
    <%- end -%>
    <%- if reservation && reservation != "none" -%>
    - "--reservation=<%= reservation %>"
    <%- end -%>