createJob
Create independent job on cluster
Description
creates an independent job on the identified cluster and an independent job object on the
client.job
= createJob(myCluster
)
The job's data is stored in the location specified by the cluster's
JobStorageLocation
property.
also specifies the job
= createJob(myCluster
,Name,Value
)Profile
or sets the independent job properties using
one or more optional name-value arguments when creating the job. For a listing of the valid
properties, see the parallel.Job
object reference page.
In you specify a Profile
and other properties, the values you
specify in these property name-value pairs can override the values in the profile.
Examples
Input 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 before R2006a
See Also
createCommunicatingJob
| createTask
| findJob
| parcluster
| recreate
| submit