Skip to content

Fails with "out of memory" on MIG-enabled GPUs #42

Description

@ayushr2

When MIG is enabled on a GPU, running the basic counter demo also fails.

Repro:

  • I tested on a GCE VM with A100-40GB
  • nvidia-smi -i 0 --query-gpu=pci.bus_id,mig.mode.current --format=csv to check if MIG is enabled
  • Enable it with sudo nvidia-smi -i 0 -mig 1
  • sudo nvidia-smi --gpu-reset
  • Reboot VM
  • Create MIG slice and compute instance: sudo nvidia-smi mig -cgi 14 -C
  • Run the counter demo: https://github.com/NVIDIA/cuda-checkpoint/blob/main/src/example.sh
  • It fails for me with the following logs:
$ ./counter &
[3] 2026

$ echo hello | nc -u localhost 10000 -w 1
101

$ echo hello | nc -u localhost 10000 -w 1
102

$ /usr/local/cuda/bin/cuda-checkpoint --action lock --pid 2026

$ /usr/local/cuda/bin/cuda-checkpoint --action checkpoint --pid 2026
Could not checkpoint on process ID 2026: "out of memory"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions