﻿# IREE deployment targets: compiler backends and runtime HAL drivers are separate choices

Match IREE code-generation backends with compatible runtime HAL devices and architecture settings, distinguishing available compiler targets from drivers installed in the execution build.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-iree-compiler-backend-runtime-hal-driver/
Language: en

## Compilation succeeds on a machine that cannot run the result

A build host lists the desired GPU code-generation backend and produces a module successfully. The deployment image lacks the matching runtime driver or device support. These observations are compatible: code generation and execution are separate capabilities. Diagnose which component is missing before rebuilding the model repeatedly. A compiler can target hardware unavailable on its own machine, while a runtime’s driver inventory does not establish which backend generated an imported module.

## Backend names describe code generation

The [deployment configuration guide](https://iree.dev/guides/deployment-configurations/) maps compiler target backends to compatible HAL devices. It distinguishes generated code formats from runtime device names. Record both sides rather than assuming their strings are identical. Also record target architecture settings, since selecting a hardware API alone does not fully describe the generated executable. A release review should identify the actual target variant, not merely state that the model was compiled for GPU.

## Runtime support is a build choice

The [CMake options reference](https://iree.dev/developers/building/cmake-options/) describes runtime HAL driver and compiler backend options separately. Enabling one category does not automatically prove the other exists in a custom package. Inspect the deployed build instead of relying on a development environment that contains more drivers. The [hybrid CPU and GPU guide](/journal/cpu-gpu-hybrid-architecture/) provides architectural context, but device discovery and HAL driver availability remain concrete requirements of the chosen IREE runtime.

## Provider-specific setup still applies

The [CUDA deployment guide](https://iree.dev/guides/deployment-configurations/gpu-cuda/) documents the CUDA path and its compilation and execution setup. Follow the corresponding guide for the selected backend rather than combining commands from incompatible targets. Validate module loading, device selection and a representative invocation in the final environment. A compatible driver can still encounter unsupported architecture choices or missing external dependencies, so a successful list-devices result is useful evidence rather than a complete execution test.

## Preserve the target pair in release records

Keep compiler build, target options, module identity, runtime build and selected device together. Bind these records through [artifact verification](/journal/artifact-signature-verification/). When execution fails, distinguish unavailable HAL driver, missing device, incompatible executable and numerical mismatch. Each calls for a different correction. This makes cross-compilation an explicit workflow with a verified destination, instead of treating compilation success as proof that any runtime installed under the same product name can execute the result.
