Skip to main content

is_gpu_buffer_available

Function is_gpu_buffer_available 

Source
pub fn is_gpu_buffer_available() -> bool
Expand description

Portable probe for the platform’s native zero-copy GPU buffer allocator (DMA-BUF on Linux, IOSurface on macOS). Returns false on Windows and other platforms with no equivalent. Use this when writing cross-platform code that cares whether the Dma tensor variant will work, not which underlying mechanism is used.