Index of /examples/matlab/Tutorials/Archive/Previous/orig/batch

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]1 2018-09-25 14:09 551  
[   ]batch.zip 2015-05-31 19:36 93K 
[   ]getbev.m 2015-02-10 09:30 1.7K 
[   ]isBatch.m 2015-01-06 09:32 140  
[   ]mbatch 2018-09-25 11:03 95  
[   ]myApp.m 2015-05-30 11:07 641  
[   ]myRand.m 2018-09-25 14:07 377  
[   ]pnbatch 2018-09-25 11:53 111  
[   ]runBatchJob.m 2018-09-25 11:27 912  
[TXT]run_matlab_aj 2018-09-25 14:09 609  
[TXT]run_matlab_job 2018-09-25 11:04 483  
[TXT]run_matlab_job2 2015-03-26 08:59 611  
[TXT]run_matlab_pct_aj 2018-09-27 10:23 727  
[TXT]run_matlab_pct_job 2018-09-25 11:25 1.0K 
[   ]run_matlab_task 2015-03-20 13:23 393  
[TXT]run_pct_jobs 2015-03-03 15:21 800  
[TXT]run_standalone_job 2015-05-31 19:33 1.6K 
[   ]runjobs 2015-03-26 08:56 156  
[   ]wnbatch 2018-09-25 11:52 80  

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.