User`s guide
7 Program Independent Jobs
7-30
c = parcluster('MyGenericProfile')
If your cluster uses a shared file system for workers to access job and task data, set the
JobStorageLocation and HasSharedFilesystem properties to specify where the
job data is stored and that the workers should access job data directly in a shared file
system.
c.JobStorageLocation = '\\share\scratch\jobdata'
c.HasSharedFilesystem = true
Note All nodes require access to the folder specified in the cluster object’s
JobStorageLocation property.
If JobStorageLocation is not set, the default location for job data is the current
working directory of the MATLAB client the first time you use parcluster to create an
object for this type of cluster, which might not be accessible to the worker nodes.
If MATLAB is not on the worker’s system path, set the ClusterMatlabRoot property to
specify where the workers are to find the MATLAB installation.
c.ClusterMatlabRoot = '\\apps\matlab\'
You can look at all the property settings on the scheduler object. If no jobs are in the
JobStorageLocation folder, the Jobs property is a 0-by-1 array. All settable property
values on a scheduler object are local to the MATLAB client, and are lost when you close
the client session or when you remove the object from the client workspace with delete
or clear all.
c
You must set the IndependentSubmitFcn property to specify the submit function for
this cluster.
c.IndependentSubmitFcn = @mysubmitfunc
With the scheduler object and the user-defined submit and decode functions defined,
programming and running a job is now similar to doing so with any other type of
supported scheduler.