User`s guide
Program Independent Jobs on a Local Cluster
7-3
Program Independent Jobs on a Local Cluster
In this section...
“Create and Run Jobs with a Local Cluster” on page 7-3
“Local Cluster Behavior” on page 7-6
Create and Run Jobs with a Local Cluster
For jobs that require more control than the functionality offered by such high level
constructs as spmd and parfor, you have to program all the steps for creating and
running the job. Using the local cluster (or local scheduler) on your machine lets
you create and test your jobs without using the resources of your network cluster.
Distributing tasks to workers that are all running on your client machine might not
offer any performance enhancement, so this feature is provided primarily for code
development, testing, and debugging.
Note: Workers running in a local cluster on a Microsoft Windows operating system
can display Simulink graphics as well as the output from certain functions such as
uigetfile and uigetdir. (With other platforms or schedulers, workers cannot display
any graphical output.) This behavior is subject to removal in a future release.
This section details the steps of a typical programming session with Parallel Computing
Toolbox software using a local cluster:
• “Create a Cluster Object” on page 7-4
• “Create a Job” on page 7-4
• “Create Tasks” on page 7-5
• “Submit a Job to the Cluster” on page 7-5
• “Fetch the Job’s Results” on page 7-6
Note that the objects that the client session uses to interact with the cluster are only
references to data that is actually contained in the cluster’s job storage location, not in
the client session. After jobs and tasks are created, you can close your client session and
restart it, and your job still resides in the storage location. You can find existing jobs
using the findJob function or the Jobs property of the cluster object.