Clusters and Clouds
If your computing task is too big or too slow for your local computer, you can offload your calculation to a cluster onsite or in the cloud to run your MATLAB® code with minimal changes. Try Parallel > Discover Clusters in the MATLAB toolstrip to find out if you already have a cluster available.
If you already have a cluster with a scheduler, you can integrate MATLAB with it using MATLAB Parallel Server™. Alternatively, if you do not have an existing scheduler, then MATLAB Parallel Server provides MATLAB Job Scheduler.
|Create cluster object
|Create parallel pool on cluster
|Get current parallel pool
|Shut down cloud cluster
|Start cloud cluster
|Wait for cloud cluster to change state
|Examine or set default cluster profile (Since R2022b)
|Export one or more profiles to file
|Import cluster profiles from file
|Save modified cluster properties to its current profile
|Save cluster properties to specified profile
|Configure settings for Parallel Computing Toolbox client session or MATLAB Parallel Server workers
Examples and How To
- Discover Clusters and Use Cluster Profiles
Find out how to work with cluster profiles and discover cloud clusters.
- Scale Up from Desktop to Cluster
Develop your parallel MATLAB® code on your local machine and scale up to a cluster.
- Process Big Data in the Cloud
This example shows how to access a large data set in the cloud and process it in a cloud cluster using MATLAB® capabilities for big data.
- Benchmark Your Cluster with the HPC Challenge
This example shows how to evaluate the performance of a compute cluster with the HPC Challenge Benchmark.
- Scale Up Deep Learning in Parallel, on GPUs, and in the Cloud (Deep Learning Toolbox)
Explore options for deep learning with MATLAB in parallel and using multiple GPUs, locally or in the cloud.
- Deep Learning with MATLAB on Multiple GPUs (Deep Learning Toolbox)
Speed up deep neural network training using multiple GPUs locally or in the cloud.
- Train Network Using Automatic Multi-GPU Support (Deep Learning Toolbox)
This example shows how to use multiple GPUs on your local machine for deep learning training using automatic parallel support.
- Use parfor to Train Multiple Deep Learning Networks (Deep Learning Toolbox)
This example shows how to use a
parforloop to perform a parameter sweep on a training option.
- Use parfeval to Train Multiple Deep Learning Networks (Deep Learning Toolbox)
This example shows how to use
parfevalto perform a parameter sweep on the depth of the network architecture for a deep learning network and retrieve data during training.
- Train Deep Learning Networks in Parallel (Deep Learning Toolbox)
This example shows how to run multiple deep learning experiments on your local machine.
- Train Network in Parallel with Custom Training Loop (Deep Learning Toolbox)
This example shows how to set up a custom training loop to train a network in parallel.
- Work with Deep Learning Data in AWS (Deep Learning Toolbox)
This example shows how to upload data to an Amazon S3™ bucket.
- Send Deep Learning Batch Job to Cluster (Deep Learning Toolbox)
This example shows how to send deep learning training batch jobs to a cluster so that you can continue working or close MATLAB® during training.
- Specify Your Parallel Preferences
Specify your preferences, and automatically create a parallel pool.
- Plugin Scripts for Generic Schedulers
How to use plugin scripts to set up generic schedulers.
- Set Environment Variables on Workers
Copy system environment variables from the client to workers in a cluster.