Skip to content
Snippets Groups Projects
Unverified Commit 2448105d authored by Krish Moodbidri's avatar Krish Moodbidri Committed by GitHub
Browse files

feat- matlab app for SLURM_CLUSTER with required config (#3)

* added stable version v1.0 of matlab

* edited cluster name

* changed clustername

* fixed versions in matlab

* removed existing form.yml.erb

* changed form.yml to form.yml.erb

* added additional partitions
parent f264a696
No related branches found
Tags v1.1
No related merge requests found
---
cluster: "SLURM_CLUSTER"
cluster: "SLURM_CLUSTER"
attributes:
bc_num_hours:
value: 1
......@@ -39,11 +39,22 @@ attributes:
label: "MATLAB version"
help: "This defines the version of MATLAB you want to load."
options:
{% for ver in matlab_vers %}
- [ "{{ ver }}", "{{ matlab_module_name }}/{{ ver }}"]
{% endfor %}
- [ "R2022a", "rc/matlab/R2022a"]
- [ "R2021b", "rc/matlab/R2021b"]
- [ "R2021a", "rc/matlab/R2021a"]
- [ "R2020a", "rc/matlab/R2020a"]
- [ "R2019b", "rc/matlab/R2019b"]
- [ "R2019a", "rc/matlab/R2019a"]
- [ "R2018a", "rc/matlab/R2018a"]
- [ "R2017b", "rc/matlab/R2017b"]
- [ "R2017a", "rc/matlab/R2017a"]
- [ "R2016b", "rc/matlab/R2016b"]
- [ "R2016a", "rc/matlab/R2016a"]
- [ "R2015a", "rc/matlab/R2015a"]
- [ "R2013a", "rc/matlab/R2013a"]
- [ "R2012a", "rc/matlab/R2012a"]
cuda_toolkit: "{{ cuda_toolkit_module }}"
cuda_toolkit: "cuda10.0/toolkit"
form:
- version
......
#!/usr/bin/env bash
<%- gpu = context.node_type.include?("vis") -%>
# Clean the environment
module purge
# Set working directory to home directory
cd "${HOME}"
......@@ -17,7 +12,7 @@ cd "${HOME}"
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)"
module restore
module reset
set -x
xfwm4 --compositor=off --daemon --sm-client-disable
xsetroot -solid "#D3D3D3"
......@@ -29,17 +24,13 @@ cd "${HOME}"
# Start MATLAB
#
<%- if context.bc_partition == "pascalnodes" -%>
# Load CUDA toolkit
module load <%= context.cuda_toolkit %>
<%- end -%>
# Load the required environment
module load xalt/latest <%= context.version %>
module load <%= context.version %>
# Launch MATLAB
<%- 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