createCommunicatingJob
Create communicating job on cluster
Syntax
Description
also specifies communicating job object properties using one or more name-value
arguments.j
= createCommunicatingJob(___,Name=Value
)
For a list of supported object properties, see parallel.Job
. In most cases, the values you specify override the values in the
cluster profile. If you specify AttachedFiles
or
AdditionalPaths
, the software combines the values with the values in
the applicable profile. If you specify an invalid property name or value, the software does
not create an object.
specifies the communicating job type as j
= createCommunicatingJob(___,Type=jobType
)pool
or spmd
.
A pool
job runs the specified task function with an available parallel
pool. An spmd
job runs the specified task function simultaneously on all
workers, and you can use spmd*
functions for communication between
workers.
creates a communicating job object with the property values corresponding to the profile
j
= createCommunicatingJob(___,Profile=profileName
)profileName
. If you do not specify a profile, the software applies
the Profile
property of the cluster object
cluster
.
Examples
Input Arguments
Output Arguments
Tips
To develop and test your code, you can run batch job on a local cluster on your client machine. If you close your MATLAB® session, any batch jobs using the local cluster also stop immediately.
When you offload work to a remote cluster, you can close the MATLAB client session while the job is processing and retrieve information from a batch job later or in a new client session.
When you offload computations to workers, any files that the client needs for computations must also be available on workers. By default, the client attempts to detect and attach these files. To turn off automatic detection, set the
AutoAttachFiles
property tofalse
. If the software cannot find all the files, or if sending files from client to worker is slow, use one of these options.If the files are in a folder that is not accessible on the workers, set the
AttachedFiles
property. The cluster copies each file you specify from the client to the workers.If the files are in a folder that is accessible on the workers, you can set the
AdditionalPaths
property instead. Use theAdditionalPaths
property to add paths to the MATLAB search path for each worker and avoid copying files unnecessarily from the client to the workers.
Version History
Introduced in R2012aSee Also
createJob
| createTask
| findJob
| parcluster
| recreate
| submit