MATLAB DCS: Difference between revisions

From Cheaha
Jump to navigation Jump to search
(create stub with simple doc of how matlab batch scripts should work)
 
(→‎Steps to run Matlab: add check on job steps)
Line 31: Line 31:
   
   
  matlab -c port@license-server -nodesktop -r matlab-script
  matlab -c port@license-server -nodesktop -r matlab-script
Then submit that script with
qsub name-of-script-above
Check on it with qstat.

Revision as of 14:34, 11 September 2009

Stub

Steps to run Matlab

Once you log into Cheaha, set up your environment with the command:

module load mathworks/matlab-r2009a

You can run MatLab and access your license server with

matlab -c port@license-server -nodesktop

This will start matlab in an interactive shell. This is good just to verify things work, but running significant computations on Cheaha is best done in batch mode via the SGE scheduler

You can create a simple SGE script with:

#$ -S /bin/bash
#$ -cwd
#
#$ -N testMatLab
#$ -l h_rt=2:00:00,s_rt=1:55:00
#$ -j y
#
#$ -M tjannett@uab.edu
#$ -m eas
#
module load mathworks/matlab-r2009a
#$ -V

matlab -c port@license-server -nodesktop -r matlab-script


Then submit that script with

qsub name-of-script-above

Check on it with qstat.