Skip to content
Snippets Groups Projects
Commit d4bc40a5 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Modified to suit SAS environmentwq

parent 67799775
No related branches found
No related tags found
No related merge requests found
--- ---
cluster: "owens" cluster: "{{ cluster_name }}"
form:
- version
- bc_account
- bc_num_hours
- bc_num_slots
- num_cores
- node_type
- bc_vnc_resolution
- bc_email_on_started
attributes: attributes:
num_cores: bc_num_hours:
widget: "number_field" value: 1
label: "Number of cores"
bc_num_slots:
label: Number of CPU
value: 1 value: 1
help: | min: 1
Number of cores on node type (4 GB per core unless requesting whole max: 24
node). Leave blank if requesting full node.
min: 0
max: 48
step: 1 step: 1
id: 'num_cores'
bc_num_slots: "1" bc_num_mems:
bc_vnc_resolution: widget: "number_field"
required: true label: Memory per CPU (GB)
bc_account: value: 4
label: "Project" min: 1
help: "You can leave this blank if **not** in multiple projects." max: 128
node_type: step: 1
bc_partition:
widget: select widget: select
label: "Node type" label: Partition
help: |
- **any** - (*1-28 cores*) Use any available Owens node. This reduces the
wait time as there are no node requirements.
- **hugemem** - (*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. Requesting hugemem nodes allocates entire nodes.
- **vis** - (*1-28 cores*) Use an Owens node that has an [NVIDIA Tesla P100
GPU](http://www.nvidia.com/object/tesla-p100.html) with an X server
running in the background. This utilizes the GPU for hardware
accelerated 3D visualization. There are 160 of these nodes on Owens.
options: options:
- [ "any", "" ] - [ "low", "low" ]
- [ "hugemem", ":hugemem" ]
- [ "vis", ":vis:gpus=1" ]
version: version:
widget: select widget: select
label: "MATLAB version" label: "SAS version"
help: "This defines the version of MATLAB you want to load." help: "This defines the version of SAS you want to load."
options: options:
- [ "R2018b", "matlab/r2018b" ] - [ "v9.4", "sas/v9.4" ]
- [ "R2018a", "matlab/r2018a" ] form:
- [ "R2017a", "matlab/r2017a" ] - version
- [ "R2016b", "matlab/r2016b" ] - bc_num_hours
- [ "R2015b", "matlab/r2015b" ] - bc_partition
- bc_num_slots
- bc_num_mems
- bc_email_on_started
--- ---
name: MATLAB name: SAS
category: Interactive Apps category: Interactive Apps
subcategory: GUIs subcategory: GUIs
role: batch_connect role: batch_connect
description: | description: |
This app will launch a [MATLAB] GUI on the [Owens cluster]. You will be able This app will launch a [SAS] GUI on the [Cheaha cluster]. You will be able
to interact with the MATLAB GUI through a VNC session. to interact with the SAS GUI through a VNC session.
[MATLAB]: https://www.mathworks.com/products/matlab.html [SAS]: https://www.sas.com/en_us/home.html
[Owens cluster]: https://www.osc.edu/resources/technical_support/supercomputers/owens [Cheaha cluster]: https://docs.uabgrid.uab.edu/wiki/Cheaha_GettingStarted
<%-
ppn = num_cores.blank? ? 28 : num_cores.to_i
if node_type == ':hugemem'
ppn = 48
end
%>
--- ---
batch_connect: batch_connect:
template: vnc template: vnc
script: script:
native: native:
resources: - "-N 1"
nodes: "<%= bc_num_slots.blank? ? "1" : bc_num_slots.to_i %>:ppn=<%= ppn %><%= node_type %>" - "-n <%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
- "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G"
- "--partition=<%= bc_partition %>"
- "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
#!/usr/bin/env bash #!/usr/bin/env bash
<%- gpu = context.node_type.include?("vis") -%>
# Clean the environment # Clean the environment
module purge module purge
...@@ -26,20 +25,10 @@ cd "${HOME}" ...@@ -26,20 +25,10 @@ cd "${HOME}"
) & ) &
# #
# Start MATLAB # Start SAS
# #
# Load the required environment # Load the required environment
module load <%= context.version %> module load sas
# Launch SAS
# Launch MATLAB sas
<%- if gpu -%>
module load intel/16.0.3 virtualgl
module list
set -x
vglrun matlab -desktop -nosoftwareopengl
<%- else -%>
module list
set -x
matlab -desktop
<%- 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