Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Specify Your Parallel Preferences

You can access parallel preferences in the general preferences for MATLAB. To open the Preferences dialog box, use any one of the following:

  • On the Home tab in the Environment section, select Parallel > Parallel Preferences

  • Select the desktop pool indicator icon, and select Parallel preferences.

  • In the command window, type

    preferences

    In the navigation tree of the Preferences dialog box, select Parallel Computing Toolbox.

The parallel preferences dialog box looks something like this:

You can control the following with your preference settings:

  • Default Cluster — This is the default on which a pool is opened when you do not otherwise specify a cluster.

  • Preferred number of workers — Here you can specify the number of workers to form a pool. The actual pool size might be limited by licensing, cluster size, and cluster profile settings. See Pool Size and Cluster Selection. For the local profile, do not choose a preferred number of workers larger than 512. See also Create and Modify Cluster Profiles.

  • Automatically create a parallel pool — This setting causes a pool to automatically start if one is not already running at the time a parallel language is encountered that runs on a pool, such as:

    With this setting, you never need to manually open a pool using the parpool function. If a pool automatically opens, you can still access the pool object with gcp.

  • Shut down and delete a parallel pool — The pool's IdleTimeout property setting causes a parallel pool to automatically shut down if the pool has been idle for the specified amount of time. Whenever the pool is used (for example, with a parfor or parfeval), the timeout counter is reset. When the timeout is about to expire, a tooltip on the desktop pool indicator warns you and allows you to reset the timer.

More About

Was this topic helpful?