Running MATLAB in parallel on the RCS compute service

The MATLAB installation on the RCS compute service has the Parallel Computing Toolbox enabled. Code developed on your own machine should run unmodified on the RCS system, with one caveat. By default MATLAB will try to use all the processors on the machine on which it is running. In order to respect per-job resource limits MATLAB needs to be told how many processors have been allocated as follows:

A full example is available in this MATLAB code and job script.

Note that MATLAB does not work with MPI and should normally only be run on a single node (i.e. select=1)

Further resources