Files

32 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2026-10-25 00:01:42 +02:00
# 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.
2026-10-25 00:01:42 +02:00
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](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)
and [NVIDIA CUDA image tag](https://hub.docker.com/r/nvidia/cuda/tags?name=12.8.1-cudnn-runtime-ubuntu24.04).
2026-10-25 00:01:42 +02:00
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](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html).
2026-10-25 00:01:42 +02:00
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`.
2026-10-25 00:01:42 +02:00
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.