#!/bin/bash -l # this script is a qsub companion script to handle single MATLAB # PCT batch job. See run_pct_jobs for running Array of jobs. # Usage: # scc1$ qsub -t 100 ./run_matlab_pct_aj # 4 cores; n=100 # scc1$ qsub -t 100-300:200 ./run_matlab_pct_aj # 4 cores; n=100,300 # # Specify SGE batch scheduler options # Merge output and error files in one #$ -j y # Send email to SCC userID when job finished or aborted #$ -m ae # Give the job(s) a name #$ -N myJobs # Request 4 cores from omp queue (example needs multicores) # For serial apps, prepend the line below with another # # Load newest version of matlab on SCC module load matlab #$ -pe omp 28 matlab -nodisplay -r "runBatchJob($SGE_TASK_ID, $NSLOTS); exit"