User`s guide

ix
Working with Codistributed Arrays . . . . . . . . . . . . . . . . . . . . 5-5
How MATLAB Software Distributes Arrays . . . . . . . . . . . . . 5-5
Creating a Codistributed Array . . . . . . . . . . . . . . . . . . . . . . . 5-7
Local Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Obtaining information About the Array . . . . . . . . . . . . . . . 5-11
Changing the Dimension of Distribution . . . . . . . . . . . . . . . 5-12
Restoring the Full Array . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
Indexing into a Codistributed Array . . . . . . . . . . . . . . . . . . 5-14
2-Dimensional Distribution . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
Looping Over a Distributed Range (for-drange) . . . . . . . . . 5-20
Parallelizing a for-Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
Codistributed Arrays in a for-drange Loop . . . . . . . . . . . . . 5-21
MATLAB Functions on Distributed and Codistributed
Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
Programming Overview
6
How Parallel Computing Products Run a Job . . . . . . . . . . . . 6-2
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Toolbox and Server Components . . . . . . . . . . . . . . . . . . . . . . 6-3
Life Cycle of a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
Create Simple Independent Jobs . . . . . . . . . . . . . . . . . . . . . . 6-10
Program a Job on a Local Cluster . . . . . . . . . . . . . . . . . . . . 6-10
Parallel Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12
Clusters and Cluster Profiles . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Cluster Profile Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Discover Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Import and Export Cluster Profiles . . . . . . . . . . . . . . . . . . . 6-16
Create and Modify Cluster Profiles . . . . . . . . . . . . . . . . . . . 6-17
Validate Cluster Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
Apply Cluster Profiles in Client Code . . . . . . . . . . . . . . . . . 6-23
Apply Callbacks to MJS Jobs and Tasks . . . . . . . . . . . . . . . 6-25