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
No related tags found
No related merge requests found
--- ---
cluster: "SLURM_CLUSTER" cluster: "SLURM_CLUSTER"
attributes: attributes:
bc_num_hours: bc_num_hours:
value: 1 value: 1
...@@ -39,11 +39,22 @@ attributes: ...@@ -39,11 +39,22 @@ attributes:
label: "MATLAB version" label: "MATLAB version"
help: "This defines the version of MATLAB you want to load." help: "This defines the version of MATLAB you want to load."
options: options:
{% for ver in matlab_vers %} - [ "R2022a", "rc/matlab/R2022a"]
- [ "{{ ver }}", "{{ matlab_module_name }}/{{ ver }}"] - [ "R2021b", "rc/matlab/R2021b"]
{% endfor %} - [ "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: form:
- version - version
......
#!/usr/bin/env bash #!/usr/bin/env bash
<%- gpu = context.node_type.include?("vis") -%>
# Clean the environment
module purge
# Set working directory to home directory # Set working directory to home directory
cd "${HOME}" cd "${HOME}"
...@@ -17,7 +12,7 @@ cd "${HOME}" ...@@ -17,7 +12,7 @@ cd "${HOME}"
export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>" export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
export XDG_DATA_HOME="<%= session.staged_root.join("share") %>" export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
export XDG_CACHE_HOME="$(mktemp -d)" export XDG_CACHE_HOME="$(mktemp -d)"
module restore module reset
set -x set -x
xfwm4 --compositor=off --daemon --sm-client-disable xfwm4 --compositor=off --daemon --sm-client-disable
xsetroot -solid "#D3D3D3" xsetroot -solid "#D3D3D3"
...@@ -29,17 +24,13 @@ cd "${HOME}" ...@@ -29,17 +24,13 @@ cd "${HOME}"
# Start MATLAB # Start MATLAB
# #
<%- if context.bc_partition == "pascalnodes" -%>
# Load CUDA toolkit
module load <%= context.cuda_toolkit %>
<%- end -%>
# Load the required environment # Load the required environment
module load xalt/latest <%= context.version %> module load <%= context.version %>
# Launch MATLAB # Launch MATLAB
<%- if gpu -%>
module load intel/16.0.3 virtualgl
module list
set -x
vglrun matlab -desktop -nosoftwareopengl
<%- else -%>
module list module list
set -x set -x
matlab -desktop 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