Allocate device memory

Allocate device memory to container

Allocate a specific amount of device memory by specifying the nvidia.com/gpumem resource. This is optional; each unit of nvidia.com/gpumem equals 1 MiB.

      resources:
        limits:
          nvidia.com/gpualloc: 1 # requesting 1 GPU
          nvidia.com/gpumem: 3000 # Each GPU contains 3000m device memory

Allocate a percentage of device memory by specifying the nvidia.com/gpumem-percentage resource. This is optional; each unit of nvidia.com/gpumem-percentage equals 1% of device memory.

      resources:
        limits:
          nvidia.com/gpualloc: 1 # requesting 1 GPU
          nvidia.com/gpumem-percentage: 50 # Each GPU contains 50% device memory

NOTICE: nvidia.com/gpumem and nvidia.com/gpumem-percentage can't be assigned together