Interface NvidiaMpsAllocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NvidiaMpsAllocation.Builder,,NvidiaMpsAllocation> SdkBuilder<NvidiaMpsAllocation.Builder,,NvidiaMpsAllocation> SdkPojo
- Enclosing class:
NvidiaMpsAllocation
-
Method Summary
Modifier and TypeMethodDescriptionmaxComputePercent(Integer maxComputePercent) The maximum percentage of the GPU's compute capacity that the container can use.The amount of GPU memory, in MiB, to allocate to the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
memory
The amount of GPU memory, in MiB, to allocate to the container. Amazon ECS assigns the container a GPU that has at least the specified amount of memory available, and sets the
CUDA_MPS_PINNED_DEVICE_MEM_LIMITenvironment variable in the container to limit its memory to this amount. The memory must be available on a single GPU. If more than one container in a task usesnvidiaMps, Amazon ECS assigns them the same GPU, which must have enough memory available for all of them.- Parameters:
memory- The amount of GPU memory, in MiB, to allocate to the container. Amazon ECS assigns the container a GPU that has at least the specified amount of memory available, and sets theCUDA_MPS_PINNED_DEVICE_MEM_LIMITenvironment variable in the container to limit its memory to this amount. The memory must be available on a single GPU. If more than one container in a task usesnvidiaMps, Amazon ECS assigns them the same GPU, which must have enough memory available for all of them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxComputePercent
The maximum percentage of the GPU's compute capacity that the container can use. Amazon ECS sets the
CUDA_MPS_ACTIVE_THREAD_PERCENTAGEenvironment variable in the container to this value. This value is a limit, not a reservation.If you don't specify this parameter, Amazon ECS doesn't set
CUDA_MPS_ACTIVE_THREAD_PERCENTAGE, and the active thread percentage of the MPS server on the container instance applies. By default, this is 100 percent.- Parameters:
maxComputePercent- The maximum percentage of the GPU's compute capacity that the container can use. Amazon ECS sets theCUDA_MPS_ACTIVE_THREAD_PERCENTAGEenvironment variable in the container to this value. This value is a limit, not a reservation.If you don't specify this parameter, Amazon ECS doesn't set
CUDA_MPS_ACTIVE_THREAD_PERCENTAGE, and the active thread percentage of the MPS server on the container instance applies. By default, this is 100 percent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-