Files
Heimdall/docs/gpu-runtime.md
T
arnaud.dartois ae3203222b
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 27m54s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 18s
fix: harden GPU fallback and group access UI
2026-11-05 00:01:17 +01:00

2.1 KiB

GPU device access and inference status

The default Agent image and install path use CPUExecutionProvider and do not require NVIDIA. The optional amd64 CUDA image is built from docker/Dockerfile.agent.gpu and published as eltruncho/heimdall-agent-gpu. Its immutable image digest is stored in the signed agent-image-gpu.json release asset. Central offers the NVIDIA install option when that signed release metadata is present. Existing Agent Compose files remain CPU-only.

ONNX Runtime 1.22 GPU uses CUDA 12.8 and cuDNN 9. The optional image pins NVIDIA 12.8.1-cudnn-runtime-ubuntu24.04 to amd64 manifest sha256:9175fa92f96de35a8cfb9493f0dfcf9435c7a597e9d95ad41d2cae382a95e3f9 and uses the separate locked GPU NuGet dependency graph. See the ONNX Runtime CUDA provider compatibility table and NVIDIA CUDA image tag.

The installer sets Agent__InferenceExecutionProvider=CUDA and requests all NVIDIA devices for that variant. CUDA initialization failure logs a warning and falls back to CPU. A physical GPU, compatible host driver and NVIDIA Container Toolkit are required; see the NVIDIA Container Toolkit install guide.

The docker-compose.gpu-{nvidia,amd,intel}.yml files remain inventory-only overlays. For local development, the CPU default is docker/docker-compose.agent.dev.yml; use docker/docker-compose.agent.dev.gpu-nvidia.yml with --profile gpu-nvidia to select the opt-in CUDA runtime, which fixes the Compose target to amd64 for its architecture-pinned NVIDIA base. Intel and AMD inventory hosts may need VIDEO_GID and RENDER_GID set to host group IDs that can access /dev/dri.

The image and Compose build acceptance and physical CUDA execution have not been run for this change. Local tests cover CPU fallback, CPU/GPU installer configuration and signed CPU/GPU release manifests; hardware execution remains open.