Main Content

Choose Supported EC2 Instance Machine Types

On the Create Cluster page, under Machine Configuration, select a Worker Machine Type from the list. You can also edit the instance type on existing clusters. Amazon EC2 provides instance types with various combinations of CPU, GPU, memory, network performance, and storage. Choose an instance that suits your application.

Tip

For deep learning, choose an instance with NVIDIA® GPUs such as the P2, P3, G3, or G4 instances. The different machine types provide a range of performance at different prices. For example, P2s have K80 GPUs and P3s have V100 GPUs, both with high performance for general computation including deep learning. G3s have M60 GPUs with high single-precision performance well suited for deep learning, image processing and computer vision.

Cloud Center supports only the instance types belonging to the instance classes in the table below. For example, the instance type m5.8xlarge is supported as it belongs to the instance class m5. To check support for NVIDIA GPU architectures by MATLAB® release, consult the column GPU Architecture and Compute Capability and compare it with the information in GPU Support by Release (Parallel Computing Toolbox).

Instance Class

Available Instance Sizes (in Number of CPU cores)

Memory Density (GB/ core)

Max Network Performance (Gigabit)

GPU Model

GPU Architecture and Compute Capability

General Purpose

     
m52,4,8,16,24,32,488.025  
m5a2,4,8,16,24,32,488.020  
m5ad2,4,8,16,24,32,488.020  
m5d2,4,8,16,24,32,488.025  
m5dn2,4,8,16,24,32,488.0100  
m5n2,4,8,16,24,32,488.0100  
m5zn2,4,6,12,248.0100  
      

Accelerated Computing (GPUs)

     
g4dn2,4,8,16,24,328.050NVIDIA T4Turning (cc7.5)
g38,16,3215.2525NVIDIA Tesla M60 Maxwell (cc5.2)
g24,163.75HighNVIDIA GRID K520Kepler (cc3.0)
p34,16,3215.2525NVIDIA V100 TensorVolta (cc7.0)
p3dn4816.0100NVIDIA V100 TensorVolta (cc7.0)
p22,16,3230.525NVIDIA Tesla K80Kepler (cc3.7)
      

Memory Optimized

     
r52,4,8,16,24,32,4816.025  
r5a2,4,8,16,24,32,4816.020  
r5ad2,4,8,16,24,32,4816.020  
r5b2,4,8,16,24,32,4816.025  
r5d2,4,8,16,24,32,4816.025  
r5dn2,4,8,16,24,32,4816.0100  
r5n2,4,8,16,24,32,4816.0100  
r42,4,8,16,3215.2525  
r32,4,8,1615.2510  
x1e2,4,8,16,32,6461.025  
      

Compute Optimized

     
c52,4,8,18,24,36,484.025  
c5a2,4,8,16,24,32,484.020  
c5ad2,4,8,16,24,32,484.020  
c5d2,4,8,18,24,36,484.025  
c5n2,4,8,18,364.0100  
c42,4,8,183.7510  
c31,163.7510  
cc2163.7810  
      

Storage Optimized

     
i32,4,8,16,3215.2525  

For details on other cluster settings, see Create a Cloud Cluster.

For more details on newly added compute optimized instances and regional availability, see the Amazon Web Services web site: Amazon EC2 Instance Types. Note that Amazon Web Services describes instances in terms of vCPUs, where v means virtual core (or logical core). Usually, each physical core has two virtual cores. For example, a m5.8xlarge has 16 physical CPU cores, which corresponds to 32 vCPUs.

Note

  • Cloud Center only supports Linux On-demand instances.

  • c5d.xlarge is the default headnode instance type.

  • m5.8xlarge is the default worker instance type.

  • Not all instances are available in all regions.

  • Cloud Center currently supports the following regions:

    • US East (N.Virginia)

    • EU West (Ireland)

    • AP Northeast (Tokyo)

  • Cloud Center supports reserved instances in addition to On-demand. Cloud Center does not support dedicated or spot instances.

  • Cloud Center supports at most one worker per physical core. Although Amazon Web Services machines can have many virtual cores, Cloud Center restricts use to at most one worker per physical core for optimal performance. Each physical core has two virtual cores with a shared Floating Point Unit. Most MATLAB computations use this unit because they are double-precision floating point. Restricting to one worker per physical core ensures that each worker has exclusive access to a Floating Point Unit and optimizes performance.

To use reserved instances with Cloud Center, you need to purchase reserved instances with the following Cloud Center supported attributes:

  • Instance type: one of the machine types supported by Cloud Center, to identify supported instances, consult the table above.

  • Platform description: Linux.

  • Tenancy: default.

  • Region: one of regions supported by Cloud Center (US East (N.Virginia), EU West (Ireland), AP Northeast (Tokyo)).

  • Availability Zone: Availability Zone within the selected region, must match the Availability Zone of the subnet selected.

For pricing and billing information, see the Amazon web site: Amazon EC2 Pricing.

AWS Resource Limits

The maximum number of instances that you can start in Cloud Center depends on your AWS On-demand instance limits. On-demand instance limits determine the maximum number of virtual central processing units (vCPUs) that you can use. In most cases, a physical core corresponds to 2 vCPUs. For example, a m5.8xlarge instance has 16 physical CPU cores, which corresponds to 32 vCPUs. To determine how many vCPUs you need, use the vCPU limits calculator, which you can find in your AWS EC2 console by selecting Limits>Calculate vCPU limit. For more information on On-demand instance limits, see On-Demand Instances.

For more information on AWS EC2 limits for any type of resource, see Amazon EC2 Service Quotas.

Related Topics