Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:matlab-save [2015/05/12 09:56] – created ir | doku:matlab-save [2015/05/12 10:26] – [Example: Serial Matlab Task] ir | ||
---|---|---|---|
Line 183: | Line 183: | ||
</ | </ | ||
+ | ==== Example: Serial Matlab Task ==== | ||
+ | |||
+ | Analogously to VSC-2, we use the matlab m-file {{doku: | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | #SBATCH -J test # job name | ||
+ | #SBATCH -N 1 # number of nodes | ||
+ | #SBATCH --ntasks-per-node=1 | ||
+ | #SBATCH --ntasks-per-core=1 | ||
+ | #SBATCH --threads-per-core=1 | ||
+ | #SBATCH --time=10 | ||
+ | |||
+ | export OMP_NUM_THREADS=1 | ||
+ | |||
+ | time matlab < myplot.m | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [username@l32]$ sbatch jobSerial.sh | ||
+ | [username@l32]$ squeue -u username | ||
+ | </ | ||
+ | |||
+ | ==== Example: Local Matlabpool ==== | ||