pub enum ComputeUnit {
TensorCore {
atom: String,
},
CudaCore,
Memory,
}Expand description
2026-10-02: Where a kernel’s arithmetic runs.
Variants§
TensorCore
2026-10-02: Tensor cores, issuing atom (e.g. mma.sync.m16n8k32.e4m3).
CudaCore
2026-10-02: CUDA-core FMA arithmetic (GEMV dot products, recurrences, convolutions).
Memory
2026-10-02: Data movement, element-wise work and reductions.
Implementations§
Source§impl ComputeUnit
impl ComputeUnit
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
2026-10-02: The unit as a report shows it: tensor_core <atom>, cuda_core, memory.
Sourcepub fn tag(&self) -> String
pub fn tag(&self) -> String
2026-10-02: The unit as one word, for a plan line: tensor_core:<atom>, cuda_core,
memory.
Sourcepub fn is_tensor_core(&self) -> bool
pub fn is_tensor_core(&self) -> bool
2026-10-02: Runs on tensor cores.
Trait Implementations§
Source§impl Clone for ComputeUnit
impl Clone for ComputeUnit
Source§fn clone(&self) -> ComputeUnit
fn clone(&self) -> ComputeUnit
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 ComputeUnit
impl Debug for ComputeUnit
Source§impl Hash for ComputeUnit
impl Hash for ComputeUnit
Source§impl Ord for ComputeUnit
impl Ord for ComputeUnit
Source§fn cmp(&self, other: &ComputeUnit) -> Ordering
fn cmp(&self, other: &ComputeUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComputeUnit
impl PartialEq for ComputeUnit
Source§impl PartialOrd for ComputeUnit
impl PartialOrd for ComputeUnit
impl Eq for ComputeUnit
impl StructuralPartialEq for ComputeUnit
Auto Trait Implementations§
impl Freeze for ComputeUnit
impl RefUnwindSafe for ComputeUnit
impl Send for ComputeUnit
impl Sync for ComputeUnit
impl Unpin for ComputeUnit
impl UnwindSafe for ComputeUnit
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.