Skip to main content

gpu_available

Function gpu_available 

Source
pub fn gpu_available() -> bool
Expand description

True when wgpu can see at least one adapter. Cached after the first probe. Initializing a cubecl device on an adapterless machine (e.g. a CI runner) panics in a worker thread, so GPU-dependent tests check this first and skip rather than fail.