parallel.clusterProfiles

Names of all available cluster profiles

Syntax

ALLPROFILES = parallel.clusterProfiles
[ALLPROFILES, DEFAULTPROFILE] = parallel.clusterProfiles

Description

ALLPROFILES = parallel.clusterProfiles returns a cell array containing the names of all available profiles.

[ALLPROFILES, DEFAULTPROFILE] = parallel.clusterProfiles returns a cell array containing the names of all available profiles, and separately the name of the default profile.

The cell array ALLPROFILES always contains a profile called local for the local cluster, and always contains the default profile. If the default profile has been deleted, or if it has never been set, parallel.clusterProfiles returns local as the default profile.

You can create and change profiles using the saveProfile or saveAsProfile methods on a cluster object. Also, you can create, delete, and change profiles through the Cluster Profile Manager.

Examples

Display the names of all the available profiles and set the first in the list to be the default profile.

allNames = parallel.clusterProfiles()
parallel.defaultClusterProfile(allNames{1});

Display the names of all the available profiles and get the cluster identified by the last profile name in the list.

allNames = parallel.clusterProfiles()
lastCluster = parcluster(allNames{end});
Was this topic helpful?