pub enum ComputeBackend {
Cpu,
Gpu,
Cuda,
Auto,
}Expand description
Configuration for compute backend selection
Variants§
Cpu
Use CPU for computation (default)
Gpu
Use wgpu GPU for computation (requires gpu feature, cross-platform)
Cuda
Use NVIDIA CUDA for computation (requires cuda feature)
Auto
Automatically select best available backend (prefers CUDA > GPU > CPU)
Trait Implementations§
Source§impl Clone for ComputeBackend
impl Clone for ComputeBackend
Source§fn clone(&self) -> ComputeBackend
fn clone(&self) -> ComputeBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeBackend
impl Debug for ComputeBackend
Source§impl Default for ComputeBackend
impl Default for ComputeBackend
Source§fn default() -> ComputeBackend
fn default() -> ComputeBackend
Returns the “default value” for a type. Read more
Source§impl PartialEq for ComputeBackend
impl PartialEq for ComputeBackend
impl Copy for ComputeBackend
impl Eq for ComputeBackend
impl StructuralPartialEq for ComputeBackend
Auto Trait Implementations§
impl Freeze for ComputeBackend
impl RefUnwindSafe for ComputeBackend
impl Send for ComputeBackend
impl Sync for ComputeBackend
impl Unpin for ComputeBackend
impl UnwindSafe for ComputeBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more