Expand description
Backend allowlists, env-driven defaults, and selection introspection.
Structs§
- Device
Candidate - One row of backend introspection for UIs and logs.
- Device
Fallback Error - Errors collected when every backend in the chain fails at run time.
- Device
Policy - Which backends a process may use — intersected with compile-time features and runtime availability.
Enums§
- Device
Pick Strategy - How [
GraphDevices::resolve_with_inputs] picks a backend when no hint is set.
Functions§
- device_
chain_ from_ env - Ordered fallback chain from
RLX_DEVICE_CHAIN(cuda,gpu,cpu). - device_
chain_ from_ env_ key - Read
PREFIX_DEVICE_CHAIN. - device_
from_ env - Default device hint from
RLX_DEVICE(orPREFIX_DEVICEviadevice_from_env_key). - device_
from_ env_ key - Read
PREFIX_DEVICEenv var. - device_
report - Explain which backends are viable for
graphunderpolicy. - devices_
for_ with_ policy - Backends on this host that can lower
graph, filtered bypolicy. - resolve_
device - Resolve the backend to use: explicit hint → env → fastest for
graph. - resolve_
device_ chain - First device in
chainthat is viable underpolicyforgraph. - run_
with_ fallback - Try
chainin order; return the first successful result fromrun.