pub const fn offload_get_num_devices() -> i32🔬This is a nightly-only experimental API. (
core_intrinsics)This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description
Returns the number of offload devices available on the system.
Use this to discover which device_id values are valid to pass to
offload. Devices are numbered from 0 to the returned value minus one.
Returns 0 if no offloading devices are present.