Interface GpuDevice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GpuDevice.Builder,,GpuDevice> SdkBuilder<GpuDevice.Builder,,GpuDevice> SdkPojo
- Enclosing class:
GpuDevice
-
Method Summary
Modifier and TypeMethodDescriptioncontainerCount(Integer containerCount) The number of containers that Amazon ECS assigned to the GPU.The ID of the GPU.remainingMemoryInMiB(Integer remainingMemoryInMiB) The amount of GPU memory, in MiB, that's available to allocate to new containers that use thenvidiaMpssharing strategy.sharingMode(String sharingMode) How the GPU is shared between containers.sharingMode(GpuSharingMode sharingMode) How the GPU is shared between containers.totalMemoryInMiB(Integer totalMemoryInMiB) The total amount of GPU memory, in MiB, that the Amazon ECS container agent reported for the GPU.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
-
gpuId
The ID of the GPU. This ID matches the GPU IDs in the
gpuIdsof the containers that Amazon ECS assigned to the GPU.- Parameters:
gpuId- The ID of the GPU. This ID matches the GPU IDs in thegpuIdsof the containers that Amazon ECS assigned to the GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sharingMode
How the GPU is shared between containers.
Valid values:
-
IDLE- No containers are assigned to the GPU, and all of its memory is available. -
NVIDIA_MPS- One or more containers share the GPU by using NVIDIA Multi-Process Service (MPS). -
DEDICATED- One container has exclusive use of the GPU.
- Parameters:
sharingMode- How the GPU is shared between containers.Valid values:
-
IDLE- No containers are assigned to the GPU, and all of its memory is available. -
NVIDIA_MPS- One or more containers share the GPU by using NVIDIA Multi-Process Service (MPS). -
DEDICATED- One container has exclusive use of the GPU.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
sharingMode
How the GPU is shared between containers.
Valid values:
-
IDLE- No containers are assigned to the GPU, and all of its memory is available. -
NVIDIA_MPS- One or more containers share the GPU by using NVIDIA Multi-Process Service (MPS). -
DEDICATED- One container has exclusive use of the GPU.
- Parameters:
sharingMode- How the GPU is shared between containers.Valid values:
-
IDLE- No containers are assigned to the GPU, and all of its memory is available. -
NVIDIA_MPS- One or more containers share the GPU by using NVIDIA Multi-Process Service (MPS). -
DEDICATED- One container has exclusive use of the GPU.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
totalMemoryInMiB
The total amount of GPU memory, in MiB, that the Amazon ECS container agent reported for the GPU. This is the memory that's available to containers, and it can be less than the nominal memory of the GPU.
- Parameters:
totalMemoryInMiB- The total amount of GPU memory, in MiB, that the Amazon ECS container agent reported for the GPU. This is the memory that's available to containers, and it can be less than the nominal memory of the GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remainingMemoryInMiB
The amount of GPU memory, in MiB, that's available to allocate to new containers that use the
nvidiaMpssharing strategy. Amazon ECS calculates this value from the memory that it allocated to containers on the GPU, not from the memory that the containers use.- Parameters:
remainingMemoryInMiB- The amount of GPU memory, in MiB, that's available to allocate to new containers that use thenvidiaMpssharing strategy. Amazon ECS calculates this value from the memory that it allocated to containers on the GPU, not from the memory that the containers use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerCount
The number of containers that Amazon ECS assigned to the GPU. This value is
0when the sharing mode isIDLEand1when the sharing mode isDEDICATED. Amazon ECS counts the containers that it assigned to the GPU, not the processes that are running on it.- Parameters:
containerCount- The number of containers that Amazon ECS assigned to the GPU. This value is0when the sharing mode isIDLEand1when the sharing mode isDEDICATED. Amazon ECS counts the containers that it assigned to the GPU, not the processes that are running on it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-