This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getCurrentCluster

Cluster object that submitted current task

Syntax

c = getCurrentCluster

Arguments

c

The cluster object that scheduled the task currently being evaluated by the worker session.

Description

c = getCurrentCluster returns the parallel.Cluster object that has sent the task currently being evaluated by the worker session. Cluster object c is the Parent of the task’s parent job.

Examples

Find the current cluster.

myCluster = getCurrentCluster;

Get the host on which the cluster is running.

host = myCluster.Host;

Tips

If this function is executed in a MATLAB® session that is not a worker, you get an empty result.

Introduced in R2012a