Gpu containers

From uw-ssec/rse-plugins · View interactive version

Gpu containers is an AI agent skill from the GitHub repository uw-ssec/rse-plugins. Use when the user needs to configure Docker/container environments for GPU workloads, mentions CUDA, ROCm, GPU passthrough, or asks about running PyTorch/TensorFlow in containers. Configures NVIDIA/AMD GPU runtime access, selects compatible base images, and validates single/multi-GPU container execu

How to use this skill

Skill file

GPU Containers

Primary Actions

Quick Checks

# Host visibility
nvidia-smi

# NVIDIA container GPU check
docker run --rm --gpus all nvidia/cuda:12.4.1-base-ubuntu22.04 nvidia-smi

# AMD ROCm container check
docker run --rm --device=/dev/kfd --device=/dev/dri rocm/pytorch:latest rocm-smi

Compatibility Snapshot

| CUDA Version | Minimum Driver |

|-------------|----------------|

| 12.4 | 550.54+ |

| 12.1 | 530.30+ |

| 11.8 | 520.61+ |

End-to-End Workflow With Validation Gates

  1. Check host GPU driver/tooling.
  2. Install/configure container runtime toolkit.
  3. Validate GPU visibility in a base container.
  4. Build app image and validate framework GPU access.
  5. For multi-GPU jobs, validate allocation and IPC/shared memory settings.
  6. If any gate fails, fix compatibility/runtime config and retry from step 1.

Quick Compose Example (NVIDIA)

services:
  training:
    build: .
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

Templates

Deep References

references/nvidia-cuda-setup.md

references/amd-rocm-setup.md

references/gpu-validation-and-operations.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.