Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
doku:matlab-save [2015/05/12 10:18] irdoku:matlab-save [2015/05/12 10:27] – [Example: Local Matlabpool] ir
Line 185: Line 185:
 ==== Example: Serial Matlab Task ==== ==== Example: Serial Matlab Task ====
  
-Analogously to VSC-2, we use the matlab m-file {{doku:myplot.m|myplot.m}} and create a file called ''matlab.sh'' as your job script, with the following basic contents:+Analogously to VSC-2, we use the matlab m-file {{doku:myplot.m|myplot.m}} and create a file called ''jobSerial.sh'' as your job script, with the following basic contents:
 <code> <code>
 #!/bin/bash #!/bin/bash
 # #
-#SBATCH -J test +#SBATCH -J test                     # job name 
-#SBATCH -N 1 +#SBATCH -N 1                        # number of nodes 
-#SBATCH --ntasks-per-node=1 +#SBATCH --ntasks-per-node=1       
 #SBATCH --ntasks-per-core=1 #SBATCH --ntasks-per-core=1
 #SBATCH --threads-per-core=1 #SBATCH --threads-per-core=1
Line 201: Line 201:
 </code> </code>
  
 +<code>
 +[username@l32]$ sbatch jobSerial.sh   # submit your job
 +[username@l32]$ squeue -u username    # check state of your job
 +</code>
 +
 +==== Example: Local Matlabpool ====
 +We use the same m-file ''main.m'' as done for VSC-2 and create the following shellscript ''jobPool.sh''