QhexrtBindings class
FFI bindings for the private QHexRT (Qualcomm Hexagon NPU) backend.
Capability, chip-selection, model-catalog, and registration symbols live in
librac_backend_qhexrt.so. Backend-neutral HTTP/download/extraction and
registry work is composed internally with commons. Android/Snapdragon only.
Constructors
- QhexrtBindings()
- QhexrtBindings.fromDynamicLibrary(DynamicLibrary _backend)
- Bind an explicitly loaded QHexRT library.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAvailable → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isArchitectureSupported(
HexagonArch arch) → bool -
modelRequiresHfAuth(
String modelId) → bool -
modelSupportsArchitecture(
String modelId, HexagonArch arch) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
probeProto(
) → NpuCapability -
Probe the Hexagon NPU via
rac_qhexrt_probe_proto, decoding the serializedrunanywhere.v1.NpuCapability. Throws when the symbol is missing or the native call fails; callers map that to the unknown fallback. -
register(
) → int -
registerModelForDevice(
RegisterModelFromUrlRequest request) → ModelInfo? -
setSkelDirectory(
String? path) → void - Configure the app-private directory containing extracted FastRPC skels. Must be called before backend registration can create a QNN runtime.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
) → int
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkAvailability(
) → bool - True on Android when the backend registration symbol resolves.