User`s guide
8 Program Communicating Jobs
8-8
3
Use createCommunicatingJob to create a communicating job object for your
cluster.
4
Create a task, run the job, and retrieve the results as usual.
Supplied Submit and Decode Functions
There are several submit and decode functions provided with the toolbox for your use
with the generic scheduler interface. These files are in the folder
matlabroot/toolbox/distcomp/examples/integration
In this folder are subfolders for each of several types of scheduler.
Depending on your network and cluster configuration, you might need to modify these
files before they will work in your situation. Ask your system administrator for help.
At the time of publication, there are folders for PBS (pbs), and Platform LSF (lsf)
schedulers, generic UNIX-based scripts (ssh), and Sun Grid Engine (sge). In addition,
the pbs, lsf, and sge folders have subfolders called shared, nonshared, and
remoteSubmission, which contain scripts for use in particular cluster configurations.
Each of these subfolders contains a file called README, which provides instruction on
where and how to use its scripts.
For each scheduler type, the folder (or configuration subfolder) contains wrappers,
submit functions, and other job management scripts for independent and communicating
jobs. For example, the folder matlabroot/toolbox/distcomp/examples/
integration/pbs/shared contains the following files for use with a PBS scheduler:
Filename Description
independentSubmitFcn.m Submit function for an independent job
communicatingSubmitFcn.m Submit function for a communicating job
independentJobWrapper.sh Script that is submitted to PBS to start workers that
evaluate the tasks of an independent job
communicatingJobWrapper.shScript that is submitted to PBS to start workers that
evaluate the tasks of a communicating job
deleteJobFcn.m Script to delete a job from the scheduler
extractJobId.m Script to get the job’s ID from the scheduler
getJobStateFcn.m Script to get the job’s state from the scheduler