Skip to content
Snippets Groups Projects

V1.1

Closed Krish Moodbidri requested to merge github/fork/krishmoodbidri/v1.0 into master
4 files
+ 68
173
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 6
15
#!/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 -%>
Loading