Skip to content
Snippets Groups Projects
Unverified Commit a6d096f8 authored by Krish Moodbidri's avatar Krish Moodbidri Committed by GitHub
Browse files

V1 (#2)

* deleted form.js

* Edited template to work with cod cluster

* fixed ansys version

* edited form.yml and submit.yml.erb to be consistent with cheaha

* fixed ansys versions in form.yml

* removed variables in submit.yml.erb

* reverted submit.yml.erb changes

* fixed cluster name

* removed pascal node partition

* reverted pascal partition
parent 57bf96d8
No related branches found
Tags v1 v1.0
No related merge requests found
'use strict'
/**
* Fix num cores, allowing blanks to remain
*/
function fix_num_cores() {
let node_type_input = $('#batch_connect_session_context_node_type');
let node_type = node_type_input.val();
let num_cores_input = $('#num_cores');
if(num_cores_input.val() === '') {
return;
}
if(node_type === 'hugemem') {
set_ppn_owens_hugemem(num_cores_input);
} else {
set_ppn_owens_regular(num_cores_input);
}
}
/**
* Sets the PPN limits available for Owens hugemem nodes.
*
* hugemem reservations are always assigned the full node
*
* @param {element} num_cores_input The input for num_cores
*/
function set_ppn_owens_hugemem(num_cores_input) {
const NUM_CORES = 48;
num_cores_input.attr('max', NUM_CORES);
num_cores_input.attr('min', NUM_CORES);
num_cores_input.val(NUM_CORES);
}
/**
* Sets the PPN limits available for non hugemem Owens nodes.
*
* @param {element} num_cores_input The input for num_cores
*/
function set_ppn_owens_regular(num_cores_input) {
const NUM_CORES = 28;
num_cores_input.attr('max', NUM_CORES);
num_cores_input.attr('min', 1);
num_cores_input.val(Math.min(NUM_CORES, num_cores_input.val()));
}
/**
* Change the maximum number of cores selected.
*/
function set_node_type_change_handler() {
let node_type_input = $('#batch_connect_session_context_node_type');
node_type_input.change(node_type_input, fix_num_cores);
}
$(document).ready(function() {
// Set the max value to be what was set in the last session
fix_num_cores();
set_node_type_change_handler();
});
\ No newline at end of file
--- ---
cluster: "{{ cluster_name }}" cluster: "SLURM_CLUSTER"
attributes: attributes:
bc_num_hours: bc_num_hours:
value: 1 value: 1
...@@ -23,14 +23,26 @@ attributes: ...@@ -23,14 +23,26 @@ attributes:
widget: select widget: select
label: Partition label: Partition
options: options:
- [ "low", "low" ] - [ "express", "express" ]
- [ "short", "short" ]
- [ "medium", "medium" ]
- [ "long", "long" ]
- [ "interactive", "interactive" ]
- [ "pascalnodes", "pascalnodes" ]
- [ "pascalnodes-medium", "pascalnodes-medium" ]
- [ "largemem", "largemem" ]
- [ "largemem-long", "largemem-long" ]
- [ "amd-hdr100", "amd-hdr100" ]
version: version:
widget: select widget: select
label: "ANSYS version" label: "ANSYS version"
help: "This defines the version of ANSYS you want to load." help: "This defines the version of ANSYS you want to load."
options: options:
- [ "19.1", "ANSYS/19.1" ] - [ "2021R1", "ANSYS/2021R1" ]
- [ "2020R2", "ANSYS/2020R2" ]
- [ "2020R1", "ANSYS/2020R1" ]
form: form:
- version - version
- bc_num_hours - bc_num_hours
......
--- ---
batch_connect: batch_connect:
template: vnc template: "vnc"
script: script:
native: native:
- "-N 1" - "-N 1"
...@@ -8,4 +8,7 @@ script: ...@@ -8,4 +8,7 @@ script:
- "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G" - "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G"
- "--partition=<%= bc_partition %>" - "--partition=<%= bc_partition %>"
- "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00" - "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
- "--job-name=ood-{{ ansys_module_name|lower }}"
<%- if bc_partition.include? "pascalnodes" -%>
- "--gres=gpu:1"
<%- end -%>
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