Skip to content

Commit

Permalink
migrate this app to cardinal only (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Oct 31, 2024
1 parent e86de63 commit c7dc453
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
23 changes: 11 additions & 12 deletions form.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
cluster:
- "owens"
- "cardinal"
form:
- auto_modules_stata
- stata_version
- auto_accounts
- bc_num_hours
- bc_num_slots
Expand All @@ -12,15 +11,16 @@ form:
- bc_vnc_resolution
- bc_email_on_started
attributes:
stata_version: "stata/18"
num_cores:
widget: "number_field"
label: "Number of cores"
value: 1
help: |
Number of cores on node type (4 GB per core unless requesting whole
node). Leave blank if requesting full node.
min: 0
max: 28
min: 1
max: 96
step: 1
bc_num_slots: "1"
bc_vnc_resolution:
Expand All @@ -29,20 +29,19 @@ attributes:
widget: select
label: "Node type"
help: |
- **any** - (*1-28 cores*) Use any available Owens node. This reduces the
- **any** - (*1-96 cores*) Use any available Cardinal node. This reduces the
wait time as there are no node requirements.
- **hugemem** - (*4-48 cores*) Use an Owens node that has 1.5TB of
available RAM as well as 48 cores. There are 16 of these nodes on
Owens.
- **hugemem** - (*4-96 cores*) Use an Cardinal node that has 2 TB of
available RAM as well as 96 cores. There are 16 of these nodes on
Cardinal.
options:
- [
"any", "any",
data-max-num-cores: 28,
data-max-num-cores: 96,
data-min-num-cores: 1,
]
- [
"hugemem", "hugemem",
data-min-num-cores: 4,
data-max-num-cores: 48,
data-option-for-cluster-cardinal: false,
data-min-num-cores: 43,
data-max-num-cores: 96,
]
4 changes: 2 additions & 2 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ category: Interactive Apps
subcategory: GUIs
role: batch_connect
description: |
This app will launch a [Stata] GUI on the [Owens cluster]. You will be able to interact with the Stata GUI
This app will launch a [Stata] GUI on the [Cardinal cluster]. You will be able to interact with the Stata GUI
through a VNC session.
[Stata]: https://www.stata.com/
[Owens cluster]: https://www.osc.edu/resources/technical_support/supercomputers/owens
[Cardinal cluster]: https://www.osc.edu/resources/technical_support/supercomputers/cardinal
2 changes: 1 addition & 1 deletion submit.yml.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%-
ppn = num_cores.blank? ? 28 : num_cores.to_i
ppn = num_cores.blank? ? 96 : num_cores.to_i
nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
partition = []

Expand Down
2 changes: 1 addition & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi
#

# Load the required enviornment
module load <%= context.auto_modules_stata %>
module load <%= context.stata_version %>
# For reference:
#
# whatis("loads stata")
Expand Down

0 comments on commit c7dc453

Please sign in to comment.