scrotwmos
GPU-PROBE(8) System Manager's Manual GPU-PROBE(8)

gpu-probe — check that a virtual machine can compute on its NVIDIA GPU

gpu-probe

gpu-probe proves that CUDA works in a virtual machine that was given a whole NVIDIA GPU for computing. The guest's first process, scrotwmd(8), runs it once, as the session's user, when the guest's kernel command line holds swm_gpu=compute. Nobody runs it by hand.

gpu-probe opens libcuda.so.1 at run time; it links no NVIDIA library. On the first CUDA device, it loads a small kernel written in PTX for sm_52, adds two vectors of 1048576 floats, reads the sums back, and checks every one.

It writes one line to the standard output. On success, the line names the CUDA version, the device, and the time taken:

cuda X.Y: device: 1048576 floats added on the GPU, every sum right, in N ms

On failure, it names the step that failed and CUDA's error code, for example “cuda: cuCtxCreate failed: 999”. Or it says that there is no libcuda.so.1, that libcuda lacks a function the probe calls, that there is no device, or how many sums were wrong. scrotwmd(8) writes each line to the guest's console after “gpu: probe:”, and the exit status when it is not 0.

scrotwmd(8) gives it HOME alone.

libcuda.so.1
NVIDIA's CUDA driver library, found by the dynamic linker

The gpu-probe utility exits 0 on success, and >0 if an error occurs.

scrotwmos.conf(5), scrotwmd(8), swm-vmm(8)

Marco Peereboom <marco@peereboom.us>

November 13, 2026 Void Linux