pub trait Backend: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn is_available(&self) -> bool;
fn device_count(&self) -> usize;
}Expand description
Backend trait for GPU operations
Required Methods§
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if backend is available
Sourcefn device_count(&self) -> usize
fn device_count(&self) -> usize
Get device count