2026-10-25 00:01:42 +02:00
|
|
|
# GPU device access and inference status
|
|
|
|
|
|
|
|
|
|
The default Agent uses `CPUExecutionProvider`. The published Agent image only
|
2026-11-04 21:58:57 +01:00
|
|
|
contains the CPU ONNX Runtime package. `Agent__InferenceExecutionProvider`
|
|
|
|
|
accepts `CPU` (the default) or `CUDA`; the current published image does not
|
|
|
|
|
include the CUDA provider or its CUDA/cuDNN runtime libraries. A CUDA request in
|
|
|
|
|
that image is logged and falls back to CPU. GPU detection and inventory report
|
|
|
|
|
host hardware; they do not mean that frame inference is running on that
|
|
|
|
|
hardware.
|
2026-10-25 00:01:42 +02:00
|
|
|
|
2026-10-26 06:42:47 +01:00
|
|
|
The production Agent Compose is generated in Central's UI. Save that file as
|
|
|
|
|
`docker-compose.yml` on the camera host. To expose hardware for inventory,
|
|
|
|
|
copy the matching optional overlay from this repository beside it, then run:
|
2026-10-25 00:01:42 +02:00
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# NVIDIA
|
2026-10-26 06:42:47 +01:00
|
|
|
docker compose \
|
|
|
|
|
-f docker-compose.yml \
|
|
|
|
|
-f docker-compose.gpu-nvidia.yml \
|
2026-10-25 00:01:42 +02:00
|
|
|
--profile gpu-nvidia-inventory up -d heimdall-agent
|
|
|
|
|
|
|
|
|
|
# AMD ROCm devices
|
2026-10-26 06:42:47 +01:00
|
|
|
docker compose \
|
|
|
|
|
-f docker-compose.yml \
|
|
|
|
|
-f docker-compose.gpu-amd.yml \
|
2026-10-25 00:01:42 +02:00
|
|
|
--profile gpu-amd-inventory up -d heimdall-agent
|
|
|
|
|
|
|
|
|
|
# Intel render device
|
2026-10-26 06:42:47 +01:00
|
|
|
docker compose \
|
|
|
|
|
-f docker-compose.yml \
|
|
|
|
|
-f docker-compose.gpu-intel.yml \
|
2026-10-25 00:01:42 +02:00
|
|
|
--profile gpu-intel-inventory up -d heimdall-agent
|
|
|
|
|
```
|
|
|
|
|
|
2026-10-26 06:42:47 +01:00
|
|
|
For local development, use the same overlay with
|
|
|
|
|
`docker/docker-compose.agent.dev.yml`. For Intel and AMD hosts, set `VIDEO_GID` and `RENDER_GID` to
|
2026-10-25 00:01:42 +02:00
|
|
|
the host group IDs that can access `/dev/dri`. The NVIDIA option requires the
|
|
|
|
|
NVIDIA Container Toolkit and Docker Compose GPU device reservations.
|
|
|
|
|
|
|
|
|
|
These overlays only expose devices for Agent inventory. They do not enable
|
2026-11-04 21:58:57 +01:00
|
|
|
GPU-accelerated ONNX inference. The Agent project has an opt-in GPU package
|
|
|
|
|
restore/build variant (`-p:HeimdallOnnxRuntime=GPU`) for provider/fallback
|
|
|
|
|
development, but no GPU runtime image is published or selected by the install
|
|
|
|
|
UI yet. Actual GPU inference still requires a compatible CUDA/cuDNN runtime,
|
|
|
|
|
host driver access, image publication and installer selection, then validation
|
|
|
|
|
on real supported hardware. CPU fallback is covered by local tests; hardware
|
|
|
|
|
execution is not.
|