pub enum Accelerator {
Cuda,
Rocm,
Vulkan,
Metal,
}Expand description
A hardware backend that kernels can run on.
Variants§
Cuda
Available on crate feature
cuda only.Runs kernels through the Nvidia CUDA backend.
Nvidia GPUs only.
Rocm
Available on crate feature
rocm only.Runs kernels through the AMD ROCm backend.
AMD GPUs only.
Vulkan
Available on crate feature
vulkan only.Runs kernels through the wgpu Vulkan backend.
This is the lightest and most portable option, because it works on any platform and GPU that supports basic compute shaders.
Metal
Available on crate feature
metal only.Runs kernels through the wgpu Metal backend.
This is the only option on Apple Silicon.
Trait Implementations§
Source§impl Clone for Accelerator
impl Clone for Accelerator
Source§fn clone(&self) -> Accelerator
fn clone(&self) -> Accelerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Accelerator
Source§impl Debug for Accelerator
impl Debug for Accelerator
Source§impl Display for Accelerator
impl Display for Accelerator
impl Eq for Accelerator
Source§impl<'_derivative_strum> From<&'_derivative_strum Accelerator> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum Accelerator> for &'static str
Source§fn from(x: &'_derivative_strum Accelerator) -> &'static str
fn from(x: &'_derivative_strum Accelerator) -> &'static str
Converts to this type from the input type.
Source§impl From<Accelerator> for &'static str
impl From<Accelerator> for &'static str
Source§fn from(x: Accelerator) -> &'static str
fn from(x: Accelerator) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for Accelerator
impl FromStr for Accelerator
Source§impl IntoEnumIterator for Accelerator
impl IntoEnumIterator for Accelerator
type Iterator = AcceleratorIter
fn iter() -> AcceleratorIter ⓘ
Source§impl PartialEq for Accelerator
impl PartialEq for Accelerator
impl StructuralPartialEq for Accelerator
Auto Trait Implementations§
impl Freeze for Accelerator
impl RefUnwindSafe for Accelerator
impl Send for Accelerator
impl Sync for Accelerator
impl Unpin for Accelerator
impl UnsafeUnpin for Accelerator
impl UnwindSafe for Accelerator
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
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.