1.5 KiB
GPU device access and inference status
The default Agent uses CPUExecutionProvider. The published Agent image only
contains the CPU ONNX Runtime package. GPU detection and inventory report host
hardware; they do not mean that frame inference is running on that hardware.
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:
# NVIDIA
docker compose \
-f docker-compose.yml \
-f docker-compose.gpu-nvidia.yml \
--profile gpu-nvidia-inventory up -d heimdall-agent
# AMD ROCm devices
docker compose \
-f docker-compose.yml \
-f docker-compose.gpu-amd.yml \
--profile gpu-amd-inventory up -d heimdall-agent
# Intel render device
docker compose \
-f docker-compose.yml \
-f docker-compose.gpu-intel.yml \
--profile gpu-intel-inventory up -d heimdall-agent
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
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 GPU-accelerated ONNX inference. Enabling that requires a GPU-specific runtime image, selecting and reporting the provider actually attached to the ONNX session, and validation on real supported hardware with a CPU fallback.