Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
documentation:tools:software:matlab [2018/02/26 15:00] – [Matlab] ltaulell | documentation:tools:software:matlab [2022/07/11 06:13] – [Matlab] ltaulell | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
^ Version | ^ Version | ||
- | | | + | | |
- | | | **modulefile** : Matlab/R2015b | + | || **modulefile** : Matlab/ |
+ | | R2019b (9.7.0.1296695) | ||
+ | || **modulefile** : Matlab/ | ||
+ | | R2019b (9.7.0.1296695) | ||
+ | || **modulefile** : Matlab/R2019b | ||
- | Pour utiliser les modules, consulter [[documentation: | + | * Pour utiliser les modules, consulter [[documentation: |
- | + | ||
- | + | ||
- | | + | |
- | + | ||
- | + | ||
- | L' | + | |
+ | * L' | ||
+ | * Pour afficher la liste des toolbox installées, | ||
===== Exemples de scripts de soumission ===== | ===== Exemples de scripts de soumission ===== | ||
<note warning> | <note warning> | ||
- | Ces scripts sont donnés à titre d' | ||
- | </ | ||
- | * exemple | + | Ce script est donné à titre d'exemple, merci de le modifier selon vos besoins. \\ |
- | <code bash batchrun.csh> | + | </note> |
- | # | + | |
- | ###### Select resources ##### | + | |
- | #$ -N nom_job | + | |
- | #$ -cwd | + | |
- | #$ -V | + | |
- | #$ -j y | + | |
- | #$ -q matlab | + | |
- | # | + | |
- | ##### Change to current working directory ##### | ||
- | cd ${SGE_O_WORKDIR} | ||
- | ##### Set environment ##### | + | <code bash script.matlab> |
- | source / | + | #!/bin/bash |
- | module load Matlab/ | + | |
- | + | ||
- | ##### Execute Program ##### | + | |
- | + | ||
- | matlab -nodisplay -nodesktop -nojvm -nosplash < program_matlab.m | + | |
- | + | ||
- | # | + | |
- | </ | + | |
- | + | ||
- | Pour soumettre il faut lancer : | + | |
- | <code bash> | + | |
- | qsub batchrun.csh | + | |
- | </ | + | |
- | (qui doit être exécutable, | + | |
- | + | ||
- | * exemple 2 | + | |
- | + | ||
- | <code bash script.matlab > | + | |
- | #!/bin/tcsh | + | |
###### Select resources ##### | ###### Select resources ##### | ||
#$ -N nom_job | #$ -N nom_job | ||
#$ -cwd | #$ -cwd | ||
#$ -V | #$ -V | ||
- | #$ -j y | ||
#$ -q matlab | #$ -q matlab | ||
##### For larger memory ##### | ##### For larger memory ##### | ||
- | ##$ -q matlabbig | + | ###$ -q matlabbig |
# config env | # config env | ||
- | source / | + | source / |
- | module load Matlab/R2015b | + | module load Matlab/R2019b |
- | + | ||
- | ##### Change to current working directory ##### | + | |
- | set WORKDIR=${SGE_O_WORKDIR} | + | |
- | cd ${WORKDIR} | + | # change to current submit dir |
+ | # important, elsewhere, job is started from ~/ | ||
+ | cd "${SGE_O_WORKDIR}" | ||
##### Execute Program #### | ##### Execute Program #### | ||
Ligne 83: | Ligne 50: | ||
Pour soumettre il faut lancer : | Pour soumettre il faut lancer : | ||
<code bash> | <code bash> | ||
- | | + | qsub script.matlab |
</ | </ |