Index of /examples/matlab/batch

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] mbatch 04-Jan-2015 10:34 72 [   ] isBatch.m 06-Jan-2015 09:32 140 [   ] getbev.m 10-Feb-2015 09:30 1.7K [   ] run_pct_jobs 03-Mar-2015 15:21 800 [   ] wnbatch 13-Mar-2015 13:33 60 [   ] pnbatch 13-Mar-2015 13:34 88 [   ] myRand.m 13-Mar-2015 14:46 375 [   ] run_matlab_task 20-Mar-2015 13:23 393 [   ] run_matlab_pct_aj 21-Mar-2015 22:10 664 [   ] run_matlab_aj 25-Mar-2015 13:55 547 [   ] runjobs 26-Mar-2015 08:56 156 [   ] run_matlab_job2 26-Mar-2015 08:59 611 [   ] myApp.m 30-May-2015 11:07 641 [   ] run_matlab_job 30-May-2015 15:11 421 [   ] runBatchJob.m 31-May-2015 11:20 912 [   ] run_matlab_pct_job 31-May-2015 13:47 937 [   ] run_standalone_job 31-May-2015 19:33 1.6K [   ] batch.zip 31-May-2015 19:36 93K

A Collection of MATLAB Batch Scripts And Utility M-files

File Name Description
batch.zip zip file of current folder
README.html this file
getbev.m m-file to return batch environment vars
isBatch.m whether code is running in batch
mbatch Simple MATLAB batch script
myApp.m Sample Application m-file
pnbatch Partial Node Embarrassingly parallel Batch job
run_matlab_aj MATLAB Serial Batch script for Array Job
run_matlab_job MATLAB Serial Batch job script
run_matlab_job2 enhanced MATLAB Serial Batch job script
run_matlab_pct_aj MATLAB PCT Batch script for Array Job
run_matlab_pct_job MATLAB PCT Batch job script
runBatchJob.m MATLAB m-file for more robust batch jobs
run_standalone_job MATLAB Standalone Batch job script
runjobs Script to submit a series of jobs via qsub
wnbatch Whole Node Embarrassingly parallel Batch job

Where to Store Them

Either use addpath or unzip from ~/matlab (folder where startup.m resides) for access from any user folder.

Types of MATLAB Batch Jobs

  1. Running Serial (single-core) MATLAB Batch Jobs
    scc1$ qsub ./mbatch
  2. Running Parallel (multicore) MATLAB Batch Jobs
    scc1$ qsub -pe omp 4 ./run_matlab_pct_job
  3. Running Pre-compiled MATLAB code (needs no licenses)
    scc1$ qsub ./run_standalone_job
    More details are available in How To Create & Run MATLAB Standalone Executable.

  4. Running Implicitly Parallel (multithreaded) MATLAB Batch Jobs
    scc1$ qsub -pe omp 12 ./wnbatch
    scc1$ qsub -pe omp 7 ./pnbatch
For more details, see: Running MATLAB Batch Jobs on the SCC
Kadin Tseng, Research Computing Services, IS&T, Boston University
Created  : January, 2015
Modified : March, 2015
Note: Research Computing Services (RCS) example programs are provided "as is" without any warranty of any kind. The user assumes the entire risk of quality, performance, and repair of any defects. You are encouraged to copy and modify any of the given examples for your own use.