** Sur lumière :**
module avail matlab to view the list of available matlab
10 jetons + les toolbox suivantes :
$ module load matlab
$ matlab
#!/bin/bash -l #$ -q all.q ## file d'attente a utiliser #$ -l matlab=1 ## on demande matlab #$ -o $JOB_NAME.o$JOB_ID ## fichier de sortie #$ -m bea ## alerte on begin, end of job #$ -M YourEmailAdress@here ## put your email adress #$ -N job_exemple_Matlab ## le jnom du job # Demander 4 Go de mémoire vive pour le job #$ -l h_vmem=4G module load matlab matlab -singleCompThread -nodisplay -nodesktop -nojvm -nosplash < monprogramme.m
Après on lance avec la commande :
$ qsub matlab_seq.sge
On vérifié la soumission avec :
$ qstat
Pour plus d'information sur l'utilisation de SGE consulter cette page Grid Engine
-singleCompThread de la ligne de commande
Par défaut matlab utilise tous les cœurs/processeurs disponibles sur la machine. Pour respecter le découpage SGE, il faut demander, à SGE, un noeud entier avec tous les coeurs.
Voici un exemple de script qui demande 16 coeurs :
#!/bin/bash #$ -q all.q ## file d'attente a utiliser #$ -l matlab=1 ## on demande matlab #$ -o $JOB_NAME.o$JOB_ID ## fichier de sortie #$ -m bea ## alerte on begin, end of job #$ -M YourEmailAdress@here ## put your email adress #$ -N job_exemple_Matlab ## le jnom du job #$ -pe openmp 8 ## on demande 8 coeurs # Demander 4 Go de mémoire vive par coeur #$ -l h_vmem=4G module load matlab matlab -nodisplay -nodesktop -nosplash < monprogramme.m
Après on lance avec la commande :
$ qsub matlab_para.sge