Skip to content
Snippets Groups Projects
submit.yml.erb 1.07 KiB
Newer Older
Jeremy Nicklas's avatar
Jeremy Nicklas committed
# Job submission configuration file
#
<%-
  email = ENV['USER']
  if !email.include? '@'
    email = email + '@uab.edu'
  end
-%>
Jeremy Nicklas's avatar
Jeremy Nicklas committed
---
# This config comes from below URL
# https://github.com/OSC/bc_example_jupyter/blob/custom_environment/submit.yml.erb
Bo-Chun Chen's avatar
Bo-Chun Chen committed
# The -C option in the config provided for slurm has been removed because it does
# not apply to implementation at UAB. We do not use constraint list to be used with -C.
Jeremy Nicklas's avatar
Jeremy Nicklas committed

Jeremy Nicklas's avatar
Jeremy Nicklas committed
batch_connect:
  template: "basic"

  job_environment:
    USER: "<%= ENV['USER'] %>"
  native:
    - "-N 1"
    - "-n <%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
    - "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G"
    - "--partition=<%= bc_partition %>"
    - "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
Bo-Chun Chen's avatar
Bo-Chun Chen committed
    - "--job-name=ood-jupyterlab"
<%- if bc_partition.include? "pascalnodes" or bc_partition.include? "amperenodes" -%>
    - "--gres=gpu:<%= bc_num_gpus.blank? ? 1 : bc_num_gpus.to_i %>"
<%- if bc_email_on_started == "1" -%>
    - "--mail-type=BEGIN"
    - "--mail-user=<%= email %>"
<%- end -%>