KiriPluginsGPUs on Linux

GPUs on Linux

In development Run

Run 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 gpusComing

Ships 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.

Kiri · Settings
Plugins›GPUs on Linux

Give containers your Linux machine's GPUs.

Devices
GPUs for containers
All GPUs (2 found)▾
Default for new containers
No GPU▾
Drivers
CDI spec folders
/etc/cdi, /var/run/cdi
Vendor
Detected from the spec▾
Window
GPU column in Containers
On
Note while a GPU is in use
On
Can reach: Your machine's GPU devices, Your CDI spec files (read)Remove
Preview of GPUs on Linux in Kiri's Settings › Plugins. In development.

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. 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. 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. 3

    Use it

    docker run --gpus all <image>, or Run with GPU in a container's menu.

Settings it asks for

DevicesWhich GPUs Kiri may hand to containers (all, or a list)
Spec foldersWhere 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.