MATLAB

From FarmShare

Revision as of 17:21, 15 November 2011 by Chekh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

We have a trial version of MATLAB Distributed Compute Server until 2011-12-25. It is installed in /mnt/glusterfs/apps/MATLAB/R2011b/bin/matlab

Very soon the standard MATLAB install in AFS will also be R2011b instead of R2011b.

You will need to write your MATLAB code to use the Parallel Computing Toolbox before using the Distributed Computing Server.

Here's how to write a job using MDCS: http://docs.uabgrid.uab.edu/wiki/MatLab_CLI#Parallel_MATLAB

You can use the "maxNumCompThreads" command (deprecated) to see how many parallel threads you can run. I get "24" on barley, or "8" on corn.

simple PCT run

/afs/ir.stanford.edu/software/matlab-2011b/bin/matlab -nodesktop -r 'maxNumCompThreads'

>> matlabpool ( 'open', 'local', 8)
Starting matlabpool using the 'local' configuration ... connected to 8 labs.
>> 
>> matlabpool size

ans =

     8

Then use 'parfor' instead of 'for'.

matlabpool of size 0 and size 1 are effectively the same, except the latter uses a PCT toolbox license.

Personal tools
Toolbox
LANGUAGES