Installation guide
Configure Sun Grid Engine on Linux Cluster
Configure Sun Grid Engine on Linux Cluster
To run parallel jobs with MATLAB Distributed Computing Server and Sun™
Grid Engine (SGE), you need to establish a “matlab” parallel environm ent
for SGE. The “matlab” parallel environment described in these instructions
is based on the “MPI” exam p le shipped w ith SGE. To use this parallel
environment, you must u se the
matlabpe.template,customizedtomatchthe
number of slots available, and to indicate w here the
startmatlabpe.sh and
stopmatlabpe.sh scripts are installed on your cluster.
In the following instructions ,
matlabroot refers to the MATLAB installation
location.
Create the Parallel Environment
The following steps create the parallel environment (PE ), and then make the
parallel environment runnable on a particular queue. You should perform
these steps on the head n ode of your cluster.
1 Navigate to the folder of the integration files appropriate for your cluster:
shared, nonsh ared ,orremoteSubmission, with one of the following shell
commands.
cd matlabr oot/toolbox/distcomp/examples/integration/sge/shared
cd
matlabroot/toolbox/distcomp/examples/integration/sge/nonshared
cd
matlabroot/toolbox/distcomp/examples/integration/sge/remoteSubmission
2 Modify the contents of matlabpe.templa te to use the desired number
of slots and the correct location of the
startmatlabpe.sh and
stopmatlabpe.sh files. (These files can exist in a shared location access ib le
by all hosts, or they can be copied to the s ame local on each host.) You can
also change other values or add additional values to
matlabpe.template to
suit your cluster. For more information, refer to the sge_pe documentation
provided with your scheduler.
3 Add the “matlab” parallel environment, using a shell command like:
qconf - Ap matlabpe.temp late
4 Make the “matlab” parallel environment runnable on all queues:
5-7
For help, contact the MathWorks install support team at
508-647-7000 or http://www.mathworks.com/support/contact_us