Skip to content

Commit 17a7a81

Browse files
authored
support for next gen ascend (#35)
1 parent a7714bd commit 17a7a81

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

form.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cluster:
33
- "owens"
44
- "pitzer"
55
- "cardinal"
6+
- "ascend-nextgen"
67
form:
78
- auto_accounts
89
- jupyterlab_switch
@@ -43,12 +44,14 @@ attributes:
4344
data-max-num-workers-for-cluster-owens: 28,
4445
data-max-num-workers-for-cluster-pitzer: 48,
4546
data-max-num-workers-for-cluster-cardinal: 48,
47+
data-max-num-workers-for-cluster-ascend-nextgen: 118,
4648
]
4749
- [
4850
"hugemem", "hugemem",
4951
data-max-num-workers-for-cluster-owens: 48,
5052
data-max-num-workers-for-cluster-pitzer: 80,
5153
data-option-for-cluster-cardinal: false,
54+
data-option-for-cluster-ascend-nextgen: false,
5255
]
5356
spark_configuration_file:
5457
help: Override defaults with a new configuration file. Leave blank to use defaults.
@@ -77,19 +80,23 @@ attributes:
7780
- [
7881
"3.4.1", "3.4.1",
7982
data-option-for-cluster-cardinal: false,
83+
data-option-for-cluster-ascend-nextgen: false,
8084
]
8185
- [
8286
"3.0.1", "3.0.1",
8387
data-option-for-cluster-cardinal: false,
88+
data-option-for-cluster-ascend-nextgen: false,
8489
]
8590
- [
8691
"2.4.5", "2.4.5",
8792
data-option-for-cluster-owens: false,
8893
data-option-for-cluster-cardinal: false,
94+
data-option-for-cluster-ascend-nextgen: false,
8995
]
9096
- [
9197
"2.3.0", "2.3.0",
92-
data-option-for-cluster-pitzer: false
98+
data-option-for-cluster-pitzer: false,
99+
data-option-for-cluster-ascend-nextgen: false,
93100
]
94101
version:
95102
widget: "select"
@@ -101,12 +108,15 @@ attributes:
101108
- [
102109
"3.0", "app_jupyter/3.0.17",
103110
data-option-for-cluster-cardinal: false,
111+
data-option-for-cluster-ascend-nextgen: false,
104112
]
105113
- [
106114
"2.2", "app_jupyter/2.2.10",
107115
data-option-for-cluster-cardinal: false,
116+
data-option-for-cluster-ascend-nextgen: false,
108117
]
109118
- [
110119
"1.2", "app_jupyter/1.2.21",
111120
data-option-for-cluster-cardinal: false,
121+
data-option-for-cluster-ascend-nextgen: false,
112122
]

submit.yml.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
cores_lookup = {
44
"hugemem" => {"pitzer" => "80", "owens" => "48"},
5-
"any" => {"pitzer" => "40", "owens" => "28", "cardinal" => "48"}
5+
"any" => {"pitzer" => "40", "owens" => "28", "cardinal" => "48", "ascend-nextgen" => '118' }
66
}
77

88
base_slurm_args = if bc_num_slots.blank?
9-
["--nodes", "1", "--exclusive", "--ntasks-per-node", cores_lookup[node_type][cluster] ]
9+
["--nodes", "1", "--ntasks-per-node", cores_lookup[node_type][cluster] ]
1010
else
11-
["--nodes", "#{bc_num_slots}", "--exclusive", "--ntasks-per-node", cores_lookup[node_type][cluster] ]
11+
["--nodes", "#{bc_num_slots}", "--ntasks-per-node", cores_lookup[node_type][cluster] ]
1212
end
1313

1414
slurm_args = case node_type

template/before.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module purge
139139
runtime_env() {
140140
module purge
141141
module load xalt/latest
142-
<%- if context.cluster != 'cardinal' -%>
142+
<%- unless ['cardinal', 'ascend-nextgen'].include?(context.cluster) -%>
143143
module load python/3.6-conda5.2 spark/<%= context.spark_version %>
144144
<%- else -%>
145145
module load python/3.12 spark/<%= context.spark_version %>

template/script.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cd "${NOTEBOOK_ROOT}"
4242
echo "TTT - $(date)"
4343

4444
# Setup Jupyter Notebook environment
45-
<%- if context.cluster == 'cardinal' -%>
45+
<%- if ['cardinal', 'ascend-nextgen'].include?(context.cluster) -%>
4646
module load project/ondemand xalt/latest <%= context.version %>
4747
<%- else -%>
4848
module load ondemand/project xalt/latest <%= context.version %>

0 commit comments

Comments
 (0)