User`s guide

7 Program Independent Jobs
7-24
exist before the worker starts. For more information on the decode function, see
“MATLAB Worker Decode Function” on page 7-27. Standard decode functions
for independent and communicating jobs are provided with the product. If your
submit functions make use of the definitions in these decode functions, you do not
have to provide your own decode functions. For example, to use the standard decode
function for independent jobs, in your submit function set MDCE_DECODE_FUNCTION to
'parallel.cluster.generic.independentDecodeFcn'.
Pass Job and Task Data
The third input argument (after cluster and job) to the submit function is the object with
the properties listed in the following table.
You do not set the values of any of these properties. They are automatically set by the
toolbox so that you can program your submit function to forward them to the worker
nodes.
Property Name Description
StorageConstructor String. Used internally to indicate that a
file system is used to contain job and task
data.
StorageLocation String. Derived from the cluster
JobStorageLocation property.
JobLocation String. Indicates where this job’s data is
stored.
TaskLocations Cell array. Indicates where each task’s
data is stored. Each element of this array is
passed to a separate worker.
NumberOfTasks Double. Indicates the number of tasks in
the job. You do not need to pass this value
to the worker, but you can use it within
your submit function.
With these values passed into your submit function, the function can pass them to the
worker nodes by any of several means. However, because the name of the decode function
must be passed as an environment variable, the examples that follow pass all the other
necessary property values also as environment variables.
The submit function writes the values of these object properties out to environment
variables with the setenv function.