NvidiaMpsAllocationProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const nvidiaMpsAllocationProperty: ecs.CfnTaskDefinition.NvidiaMpsAllocationProperty = {
memory: 123,
// the properties below are optional
maxComputePercent: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
nvidia_mps_allocation_property = ecs.CfnTaskDefinition.NvidiaMpsAllocationProperty(
memory=123,
# the properties below are optional
max_compute_percent=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
NvidiaMpsAllocationProperty nvidiaMpsAllocationProperty = NvidiaMpsAllocationProperty.builder()
.memory(123)
// the properties below are optional
.maxComputePercent(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var nvidiaMpsAllocationProperty = new NvidiaMpsAllocationProperty {
Memory = 123,
// the properties below are optional
MaxComputePercent = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
nvidiaMpsAllocationProperty := &NvidiaMpsAllocationProperty{
Memory: jsii.Number(123),
// the properties below are optional
MaxComputePercent: jsii.Number(123),
}
Properties
maxComputePercentoptionalnumbermax_compute_percentoptionalint | floatmaxComputePercentoptionalNumberMaxComputePercentoptionaldoubleMaxComputePercentoptional*float64 #The maximum percentage of the GPU's compute capacity that the container can use.
The amount of GPU memory, in MiB, allocated to the container.