Skip to Main Content Skip to Search
Product Documentation

Introduction

A communicating job consists of only a single task that runs simultaneously on several workers, usually with different data. More specifically, the task is duplicated on each worker, so each worker can perform the task on a different set of data, or on a particular segment of a large data set. The workers can communicate with each other as each executes its task. In this configuration, workers are sometimes also referred to as labs.

In principle, creating and running communicating jobs is similar to programming independent jobs:

  1. Define and select a cluster profile.

  2. Find a cluster.

  3. Create a communicating job.

  4. Create a task.

  5. Submit the job for running. For details about what each worker performs for evaluating a task, see Submit a Job to the Job Queue.

  6. Retrieve the results.

The differences between independent jobs and communicating jobs are summarized in the following table.

Independent Job

Communicating Job

MATLAB sessions, called workers, perform the tasks but do not communicate with each other.

MATLAB sessions, sometimes called labs, can communicate with each other during the running of their tasks.

You define any number of tasks in a job.

You define only one task in a job. Duplicates of that task run on all workers running the communicating job.

Tasks need not run simultaneously. Tasks are distributed to workers as the workers become available, so a worker can perform several of the tasks in a job.

Tasks run simultaneously, so you can run the job only on as many workers as are available at run time. The start of the job might be delayed until the required number of workers is available.

A communicating job has only one task that runs simultaneously on every worker. The function that the task runs can take advantage of a worker's awareness of how many workers are running the job, which worker this is among those running the job, and the features that allow workers to communicate with each other.

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS