MATLAB

MATLAB est un logiciel de calcul généraliste.

Utilisation en graphique

Se connecter via X2Go sur visu et ouvrir un terminal :

module load MATLAB/2017a
vglrun matlab

Pour la version 2021b :

module load /softs/manual/modules/MATLAB/2021b
vglrun matlab -nosoftwareopengl

Notes :

  1. This path for 2021b MATLAB module (/softs/manual/modules) is planned to be introduced automatically to the MODULEPATH variable, so that you will be able to load it « as usually » i.e. module load MATLAB/2021b

  2. -nosoftwareopengl option is needed to avoid graphical session to be crashed (and to say to Matlab to use Nvidia graphic card present on prepost machine)

Utilisation en batch

#!/bin/bash
#
#SBATCH --job-name=test_matlab
#SBATCH --output=job.%j.out # output messages go here
#SBATCH --error=job.%j.err    # error messages go here
#SBATCH --mail-user=jefferson.smith@ec-lyon.fr
#SBATCH --mail-type=ALL
#
#SBATCH --partition=test # partition name
#SBATCH --nodes=1
#SBATCH --cpus-per-task=16
#SBATCH --mem=63000 # amount of RAM memory required per node, in Mega Bytes
#SBATCH --time=1:00:00


module load MATLAB/2017a
matlab -nosplash -nodesktop -noFigureWindows -r "try; run('<mon_fichier.m>'); catch ME; save('failure.mat','ME'); end; quit"