Skip to main content

gpu_available

Function gpu_available 

Source
pub fn gpu_available() -> bool
Expand description

Returns true if a CUDA device can initialize a CubeCL runtime.

Use this in test helpers to skip GPU tests on machines without hardware.