Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rc/bc_uab_rstudio_server
  • louistw/bc_uab_rstudio_server
2 results
Show changes
Commits on Source (3)
const table = {
"interactive": { "max_cpu": 48, "max_hour": 2, "max_gpu": -1 },
"express": { "max_cpu": 48, "max_hour": 2, "max_gpu": -1 },
"short": { "max_cpu": 48, "max_hour": 12, "max_gpu": -1 },
"interactive": { "max_cpu": 48, "max_hour": 2, "max_gpu": 0 },
"express": { "max_cpu": 48, "max_hour": 2, "max_gpu": 0 },
"short": { "max_cpu": 48, "max_hour": 12, "max_gpu": 0 },
"pascalnodes": { "max_cpu": 28, "max_hour": 12, "max_gpu": 4 },
"pascalnodes-medium": { "max_cpu": 28, "max_hour": 48, "max_gpu": 4 },
"medium": { "max_cpu": 48, "max_hour": 50, "max_gpu": -1 },
"long": { "max_cpu": 48, "max_hour": 150, "max_gpu": -1 },
"intel-dcb": { "max_cpu": 24, "max_hour": 150, "max_gpu": -1 },
"amd-hdr100": { "max_cpu": 128, "max_hour": 150, "max_gpu": -1 },
"largemem": { "max_cpu": 24, "max_hour": 50, "max_gpu": -1 },
"largemem-long": { "max_cpu": 24, "max_hour": 150, "max_gpu": -1 },
"medium": { "max_cpu": 48, "max_hour": 50, "max_gpu": 0 },
"long": { "max_cpu": 48, "max_hour": 150, "max_gpu": 0 },
"intel-dcb": { "max_cpu": 24, "max_hour": 150, "max_gpu": 0 },
"amd-hdr100": { "max_cpu": 128, "max_hour": 150, "max_gpu": 0 },
"largemem": { "max_cpu": 24, "max_hour": 50, "max_gpu": 0 },
"largemem-long": { "max_cpu": 24, "max_hour": 150, "max_gpu": 0 },
"amperenodes": { "max_cpu": 128, "max_hour": 12, "max_gpu": 2 },
"amperenodes-medium": { "max_cpu": 128, "max_hour": 48, "max_gpu": 2 },
}
const gpu_part_regex = /pascal|ampere/;
function set_max_value(form_id, value) {
const form_element = $(form_id);
form_element.attr({'max': value});
......@@ -32,7 +34,7 @@ function toggle_gpu_visibility(event) {
const gpu_selector = '#batch_connect_session_context_bc_num_gpus';
const hour_selector = '#batch_connect_session_context_bc_num_hours';
toggle_visibilty_of_form_group(gpu_selector, table[partition]["max_gpu"] != -1);
toggle_visibilty_of_form_group(gpu_selector, gpu_part_regex.test(partition));
set_max_value(cpu_selector, table[partition]["max_cpu"]);
set_max_value(gpu_selector, table[partition]["max_gpu"]);
set_max_value(hour_selector, table[partition]["max_hour"]);
......
......@@ -38,7 +38,7 @@ attributes:
widget: "number_field"
label: Number of GPUs
value: 1
min: 1
min: 0
max: 4
step: 1
......@@ -93,6 +93,10 @@ attributes:
- [ "3.4.1-intel-2017a-X11-20170314", "R/3.4.1-intel-2017a-X11-20170314"]
- [ "3.3.3-intel-2017a-X11-20170314", "R/3.3.3-intel-2017a-X11-20170314"]
bc_nodelist:
widget: text_field
label: Enter node list, comma separated
form:
- custom_environment
- rstudio_version
......@@ -102,4 +106,5 @@ form:
- bc_num_gpus
- bc_num_slots
- bc_num_mems
- bc_nodelist
- bc_email_on_started
---
name: RStudio Server
name: RStudio Server Louis
category: Interactive Apps
subcategory: Servers
role: batch_connect
......
......@@ -22,6 +22,9 @@ script:
<%- if bc_partition.include? "pascalnodes" or bc_partition.include? "amperenodes" -%>
- "--gres=gpu:<%= bc_num_gpus.blank? ? 1 : bc_num_gpus.to_i %>"
<%- end -%>
<%- if ! bc_nodelist.blank? -%>
- "--nodelist=<%= bc_nodelist %>"
<%- end -%>
<%- if bc_email_on_started == "1" -%>
- "--mail-type=BEGIN"
- "--mail-user=<%= email %>"
......
......@@ -6,6 +6,9 @@
%>
module reset
export | sort
#exit
# load RStudio Server
module load <%= context.rstudio_version %>
......