From ScientificComputing
Revision as of 11:55, 25 August 2016 by Sfux (talk | contribs)

Jump to: navigation, search

Assuming that you already loaded the MATLAB module and have a MATLAB program simulation.m you would like to run, the command to submit a job to the batch system would look like

bsub [LSF parameters] matlab -nodisplay -nojvm -singleCompThread -r simulation

Please note, that you have to leave away the file ending .m. LSF parameters are documented on the wiki page about using the batch system.

We suggest you include the extra options shown above:

since jobs on compute nodes are not run interactively, this flag explicitly tells Matlab that no graphical display (X server) is available is available.
forces Matlab to use only one thread for its computations. This option is crucial to prevent MATLAB from overloading Brutus nodes.
(optional) prevents the JVM (Java virtual machine) from being used. Add this flag unless you need the JVM, such as the with the PCT (Parallel Computing Toolbox).