Skip to content

Commit

Permalink
support cardinal (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Aug 19, 2024
1 parent 778a7f4 commit 93f9ddc
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 13 deletions.
31 changes: 26 additions & 5 deletions form.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
cluster:
- "owens"
- "cardinal"
form:
- version
- auto_accounts
Expand Down Expand Up @@ -64,17 +65,37 @@ attributes:
'hugemem', 'hugemem',
data-max-num-cores: 48,
data-min-num-cores: 4,
data-option-for-cluster-ascend: false
]
version:
widget: select
label: "ANSYS Workbench version"
help: "This defines the version of ANSYS you want to load."
options:
- [ "2023 R2", "ansys/2023R2" ]
- [ "2022 R2", "ansys/2022R2" ]
- [ "2022 R1", "ansys/2022R1" ]
- [ "2021 R2", "ansys/2021R2" ]
- [ "2021 R1", "ansys/2021R1" ]
- [
"2024 R1", "ansys/2024R1",
data-option-for-cluster-owens: false,
]
- [
"2023 R2", "ansys/2023R2",
data-option-for-cluster-cardinal: false,
]
- [
"2022 R2", "ansys/2022R2",
data-option-for-cluster-cardinal: false,
]
- [
"2022 R1", "ansys/2022R1",
data-option-for-cluster-cardinal: false,
]
- [
"2021 R2", "ansys/2021R2",
data-option-for-cluster-cardinal: false,
]
- [
"2021 R1", "ansys/2021R1",
data-option-for-cluster-cardinal: false,
]
user_license_provider:
widget: select
label: "License provider"
Expand Down
29 changes: 21 additions & 8 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ cd "${HOME}"
#
# Launch Xfce Window Manager and Panel
#
export SEND_256_COLORS_TO_REMOTE=1
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)"
export $(dbus-launch)

(
module restore
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)"
export $(dbus-launch)
module restore
set -x

source /etc/os-release

if [[ "$VERSION_ID" < "9" ]]; then
xfwm4 --compositor=off --daemon --sm-client-disable
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable
xfce4-panel --sm-client-disable
) &
xfce4-panel --sm-client-disable &
else
xfwm4 --compositor=off --sm-client-disable &
xsetroot -solid "#D3D3D3"
xfsettingsd --sm-client-disable &
xfce4-panel --sm-client-disable &
fi

#
# Start ANSYS Workbench
Expand Down Expand Up @@ -102,7 +111,11 @@ export -n I_MPI_HYDRA_BOOTSTRAP_EXEC_EXTRA_ARGS

# Launch ANSYS Workbench
<%- if gpu -%>
<%- if context.cluster == 'owens' -%>
module load intel/16.0.3 virtualgl/2.6.3
<%- else -%>
module load virtualgl
<%- end -%>
module list
set -x
vglrun runwb2
Expand Down

0 comments on commit 93f9ddc

Please sign in to comment.