Enum AcceleratorManufacturer
Supported hardware accelerator manufacturers.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AcceleratorManufacturer
Syntax (vb)
Public Enum AcceleratorManufacturer
Remarks
Restricts instance selection to accelerators from a particular vendor. Useful for choosing specific ecosystems (e.g., NVIDIA CUDA, AWS chips).
ExampleMetadata: infused
Examples
Vpc vpc;
var securityGroup = new SecurityGroup(this, "SecurityGroup", new SecurityGroupProps {
Vpc = vpc,
Description = "Security group for managed instances"
});
var miCapacityProvider = new ManagedInstancesCapacityProvider(this, "MICapacityProvider", new ManagedInstancesCapacityProviderProps {
Subnets = vpc.PrivateSubnets,
SecurityGroups = new [] { securityGroup },
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
| AMD | AMD (e.g., Radeon Pro V520 GPU). |
| AWS | Amazon Web Services (e.g., Inferentia, Trainium accelerators). |
| HABANA | Habana Labs(e.g, Gaudi accelerator). |
| NVIDIA | NVIDIA (e.g., A100, V100, T4, K80, M60 GPUs). |
| XILINX | Xilinx (e.g., VU9P FPGA). |
Fields
| Name | Description |
|---|---|
| AMD | AMD (e.g., Radeon Pro V520 GPU). |
| AWS | Amazon Web Services (e.g., Inferentia, Trainium accelerators). |
| HABANA | Habana Labs(e.g, Gaudi accelerator). |
| NVIDIA | NVIDIA (e.g., A100, V100, T4, K80, M60 GPUs). |
| XILINX | Xilinx (e.g., VU9P FPGA). |