Skip to content

Using MIG GPU Resources

This section explains how applications can utilize MIG GPU resources.

Prerequisites

Using MIG GPU via GUI

  1. Confirm if the cluster has recognized the GPU card type

    Go to Cluster Details -> Cluster Settings -> Addon Settings to check if the GPU card type is correctly recognized. The automatic recognition frequency is every 10 minutes.

    gpu

  2. When deploying an application via an image, you can select and utilize Nvidia MIG resources.

    mig02

    • When using MIG Single mode, the resource information to be added should be:

      resources:
        limits:
          nvidia.com/gpu: 2
      
    • When using MIG Mixed mode, the resource information to be added should be:

      resources:
        limits:
          nvidia.com/mig-4g.20gb: 1 # (1)
      
      1. The resource type nvidia.com/mig-g.gb exposes individual MIG devices.
  3. Once inside the container, you can see that only one MIG device is being used.

    mig03

Comments