Skip to content

ECS  >  Enums  >  GpuSharingMode

GpuSharingMode

Enum Class

GpuSharingMode

Bases: UnknownEnumMixin, StrEnum

Describes how a GPU on a container instance is shared between containers.

Attributes

DEDICATED class-attribute instance-attribute
DEDICATED = 'DEDICATED'

One container has exclusive use of the GPU. Amazon ECS assigns GPUs this way to containers that specify value instead of sharingStrategy for the GPU resource type.

IDLE class-attribute instance-attribute
IDLE = 'IDLE'

No containers are assigned to the GPU, and all of its memory is available.

NVIDIA_MPS class-attribute instance-attribute
NVIDIA_MPS = 'NVIDIA_MPS'

One or more containers share the GPU by using NVIDIA Multi-Process Service (MPS). While the GPU is in this mode, Amazon ECS assigns it only to containers that use the nvidiaMps sharing strategy.