Skip to main content

Crate virtio_accel_hexagon

Crate virtio_accel_hexagon 

Source
Expand description

Qualcomm Hexagon NPU backend for virtio-accel.

The portable portion validates TOSA 1.0 artifacts and creates a provider-local, fixed binding and operation plan. Native modules are compiled only for Windows ARM64 when a complete public QAIRT/QNN SDK is detected. SDK-free hosts retain that portable code and a constructor that reports the unavailable runtime without importing Qualcomm dependencies into portable crates.

Structs§

HexagonAccelerator
Placeholder that keeps workspace consumers portable when no complete QNN SDK was detected.

Enums§

InitError
Failure to initialize a Qualcomm Hexagon backend instance.
LoweringError
Failure while validating and planning a graph for QNN HTP.

Constants§

HEXAGON_TOSA_CAPABILITY
Conservative floating-profile capability boundary for the validated QNN HTP tier.
HEXAGON_TOSA_INTEGER_CAPABILITY
Conservative exact integer-profile capability boundary for the validated QNN HTP tier.
HEXAGON_TOSA_INTEGER_TARGET
TOSA integer-profile target lowered with exact INT8 storage and INT32 accumulation.
HEXAGON_TOSA_TARGET
TOSA declaration accepted by the first Hexagon tier.
REQUIRED_RESIDENT_BYTES
Conservative program-residency charge until QNN publishes a finite graph allocation bound.
TESTED_QAIRT_RELEASE
Native QNN runtime and ABI version validated by the initial backend tier.

Functions§

supports_tosa_dtype
Whether the first hardware tier may expose dtype at a model boundary.
supports_tosa_operator
Whether the first hardware tier has a QNN lowering for op.