Skip to main content

decide

Function decide 

Source
pub fn decide(kernel: GpuKernel, eligibility: GpuEligibility) -> GpuDecision
Expand description

Decide whether a GPU kernel may run. This is deliberately conservative: with no compiled vendor backend, auto returns CPU fallback and force returns an error at the call site through GpuDecision::require_supported.