Skip to main content

route_through_gpu

Function route_through_gpu 

Source
pub fn route_through_gpu(op: DispatchOp) -> Option<&'static GpuRuntime>
Expand description

Returns Some(runtime) when both a device is available and the workload is large enough per policy. The caller can then attempt the actual device kernel; any backend failure is expected to return None from the lower layer and the CPU fast path resumes.