pub const fn offload_get_num_devices() -> i32🔬This is a nightly-only experimental API. (
core_intrinsics)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.