Show / Hide Table of Contents

Enum AcceleratorName

Specific hardware accelerator models supported by EC2.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AcceleratorName
Syntax (vb)
Public Enum AcceleratorName
Remarks

Defines exact accelerator models that can be required or excluded when selecting instance types.

ExampleMetadata: infused

Examples
Role infrastructureRole;
             InstanceProfile instanceProfile;
             Vpc vpc;


             var miCapacityProvider = new ManagedInstancesCapacityProvider(this, "MICapacityProvider", new ManagedInstancesCapacityProviderProps {
                 InfrastructureRole = infrastructureRole,
                 Ec2InstanceProfile = instanceProfile,
                 Subnets = vpc.PrivateSubnets,
                 InstanceRequirements = new InstanceRequirementsConfig {
                     // Required: CPU and memory constraints
                     VCpuCountMin = 2,
                     VCpuCountMax = 8,
                     MemoryMin = Size.Gibibytes(4),
                     MemoryMax = Size.Gibibytes(32),

                     // CPU preferences
                     CpuManufacturers = new [] { CpuManufacturer.INTEL, CpuManufacturer.AMD },
                     InstanceGenerations = new [] { InstanceGeneration.CURRENT },

                     // Instance type filtering
                     AllowedInstanceTypes = new [] { "m5.*", "c5.*" },

                     // Performance characteristics
                     BurstablePerformance = BurstablePerformance.EXCLUDED,
                     BareMetal = BareMetal.EXCLUDED,

                     // Accelerator requirements (for ML/AI workloads)
                     AcceleratorTypes = new [] { AcceleratorType.GPU },
                     AcceleratorManufacturers = new [] { AcceleratorManufacturer.NVIDIA },
                     AcceleratorNames = new [] { AcceleratorName.T4, AcceleratorName.V100 },
                     AcceleratorCountMin = 1,

                     // Storage requirements
                     LocalStorage = LocalStorage.REQUIRED,
                     LocalStorageTypes = new [] { LocalStorageType.SSD },
                     TotalLocalStorageGBMin = 100,

                     // Network requirements
                     NetworkInterfaceCountMin = 2,
                     NetworkBandwidthGbpsMin = 10,

                     // Cost optimization
                     OnDemandMaxPricePercentageOverLowestPrice = 10
                 }
             });

Synopsis

Fields

A100

NVIDIA A100 GPU.

A10G

NVIDIA A10G GPU.

H100

NVIDIA H100 GPU.

INFERENTIA

AWS Inferentia chips.

K520

NVIDIA GRID K520 GPU.

K80

NVIDIA K80 GPU.

M60

NVIDIA M60 GPU.

RADEON_PRO_V520

AMD Radeon Pro V520 GPU.

T4

NVIDIA T4 GPU.

T4G

NVIDIA T4G GPUs.

V100

NVIDIA V100 GPU.

VU9P

Xilinx VU9P FPGA.

Fields

Name Description
A100

NVIDIA A100 GPU.

A10G

NVIDIA A10G GPU.

H100

NVIDIA H100 GPU.

INFERENTIA

AWS Inferentia chips.

K520

NVIDIA GRID K520 GPU.

K80

NVIDIA K80 GPU.

M60

NVIDIA M60 GPU.

RADEON_PRO_V520

AMD Radeon Pro V520 GPU.

T4

NVIDIA T4 GPU.

T4G

NVIDIA T4G GPUs.

V100

NVIDIA V100 GPU.

VU9P

Xilinx VU9P FPGA.

Back to top Generated by DocFX