<< Previous question   Table of contents   MOSIX home   Next question >>
Question:
How to run MATLAB Version 7.5 (or newer) jobs
Answer:
MATLAB Version 7.5 (or newer) applications use a library which
uses threads (the "CLONE_VM" system-call) incorrectly.
To overcome this problem we added to mosrun the -i flag,
which should be used with the -E flag.
This means that MATLAB jobs can be queued and assigned by MOSIX to nodes
as regular Linux processes, but they can't migrate afterwards.
The MOSIX version should be at least MOSIX-2.24.0.0
and jobs should be started by:
> mosrun -E -b -i matlab ....
MOSIX will assign each job to the best node in the local cluster.
Example: to run the following MATLAB test.m program:
a=randn(3000);
b=svd(a);
use:
> mosrun -E -b -i matlab -nojvm -nodesktop -nodisplay < test.m