Skip to main content

backend_for_device

Function backend_for_device 

Source
pub fn backend_for_device(loc: DeviceLocation) -> BackendId
Expand description

The BackendId that owns a DeviceLocation’s storage substrate. Total — BackendId mirrors DeviceLocation 1:1 (AOCL/MKL are kernel_source siblings under Cpu, not distinct backends). Inverse of default_device_for modulo GPU ordinals.