Files
Heimdall/docs/gpu-runtime.md
T
Arnaud Dartois 68e540133c
Heimdall Gitea / Detect CI scope (pull_request) Successful in 9s
Heimdall Gitea / Build and tests (pull_request) Successful in 18m48s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / CI policy (pull_request) Failing after 2s
refactor(docker): separate core and optional compose services
2026-10-26 06:07:23 +01:00

1.6 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 default Compose files do not require a GPU. Optional overlays expose a device to the Agent for inventory and hardware experiments:

# NVIDIA
docker compose --env-file docker/.env \
  -f docker/docker-compose.agent.yml \
  -f docker/docker-compose.gpu-nvidia.yml \
  --profile gpu-nvidia-inventory up -d heimdall-agent

# AMD ROCm devices
docker compose --env-file docker/.env \
  -f docker/docker-compose.agent.yml \
  -f docker/docker-compose.gpu-amd.yml \
  --profile gpu-amd-inventory up -d heimdall-agent

# Intel render device
docker compose --env-file docker/.env \
  -f docker/docker-compose.agent.yml \
  -f docker/docker-compose.gpu-intel.yml \
  --profile gpu-intel-inventory up -d heimdall-agent

Use the same overlay with docker/docker-compose.agent.dev.yml for a local Agent build. 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.