pub struct MixedPrecisionConfig {
pub storage_precision: StoragePrecision,
pub compute_precision: ComputePrecision,
pub algorithm: MixedSpMVAlgo,
pub sm_version: SmVersion,
}Expand description
Configuration for mixed-precision SpMV.
Fields§
§storage_precision: StoragePrecisionStorage precision for matrix values (FP16 or BF16).
compute_precision: ComputePrecisionCompute/accumulation precision (FP32 or FP64).
algorithm: MixedSpMVAlgoAlgorithm selection.
sm_version: SmVersionTarget GPU architecture.
Implementations§
Source§impl MixedPrecisionConfig
impl MixedPrecisionConfig
Sourcepub const fn fp16_fp32(algo: MixedSpMVAlgo, sm: SmVersion) -> Self
pub const fn fp16_fp32(algo: MixedSpMVAlgo, sm: SmVersion) -> Self
Creates a new configuration with FP16 storage and FP32 accumulation.
Sourcepub const fn bf16_fp32(algo: MixedSpMVAlgo, sm: SmVersion) -> Self
pub const fn bf16_fp32(algo: MixedSpMVAlgo, sm: SmVersion) -> Self
Creates a new configuration with BF16 storage and FP32 accumulation.
Trait Implementations§
Source§impl Clone for MixedPrecisionConfig
impl Clone for MixedPrecisionConfig
Source§fn clone(&self) -> MixedPrecisionConfig
fn clone(&self) -> MixedPrecisionConfig
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 MixedPrecisionConfig
Source§impl Debug for MixedPrecisionConfig
impl Debug for MixedPrecisionConfig
impl Eq for MixedPrecisionConfig
Source§impl Hash for MixedPrecisionConfig
impl Hash for MixedPrecisionConfig
Source§impl PartialEq for MixedPrecisionConfig
impl PartialEq for MixedPrecisionConfig
Source§fn eq(&self, other: &MixedPrecisionConfig) -> bool
fn eq(&self, other: &MixedPrecisionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MixedPrecisionConfig
Auto Trait Implementations§
impl Freeze for MixedPrecisionConfig
impl RefUnwindSafe for MixedPrecisionConfig
impl Send for MixedPrecisionConfig
impl Sync for MixedPrecisionConfig
impl Unpin for MixedPrecisionConfig
impl UnsafeUnpin for MixedPrecisionConfig
impl UnwindSafe for MixedPrecisionConfig
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