GPUs on Linux
In development RunRun GPU work in Kiri on Linux. The plugin reads your machine's device list, the Container Device Interface, and lets containers ask for a GPU with --gpus or by device name.
kiri plugin add gpusComingShips from registry.runkiri.com/plugins/gpus via Kiri Registry.
Linux only. macOS and Windows have no way to hand a GPU to a Linux container.
Give containers your Linux machine's GPUs.
What it will do
Run
--gpus works
docker run --gpus all, or name one device, and the container gets it, as with Docker on Linux.
Devices
From your machine's own list
The plugin reads the CDI spec your GPU vendor installs, so it works with the drivers you already have.
Window
See who uses the GPU
A GPU column in the Containers list and a note in the status bar while a container holds a GPU.
Install and use it
- 1
Add it
Run
kiri plugin add gpus, or open Plugins in Kiri's window and press Install. Kiri shows what the plugin may reach before anything runs. - 2
Fill in its settings
Kiri asks for the settings below once. Tokens and keys go into Kiri's secret store and never sit in a file.
- 3
Use it
docker run --gpus all <image>, or Run with GPU in a container's menu.
Settings it asks for
| Devices | Which GPUs Kiri may hand to containers (all, or a list) |
|---|---|
| Spec folders | Where your CDI specs live, /etc/cdi and /var/run/cdi by default |
What it can reach
- Your machine's GPU devices
- Your CDI spec files (read)
- Containers you start with a GPU
Kiri asks before installing and records every call the plugin makes. Switch it off or remove it at any time with kiri plugin off gpus or kiri plugin remove gpus.