pub struct SimdConfig {
pub avx512f_enabled: bool,
pub avx2_enabled: bool,
pub fma_enabled: bool,
pub avx512vnni_enabled: bool,
pub neon_enabled: bool,
pub dotprod_enabled: bool,
}Expand description
Unstable: SIMD dispatch internals; fields may be added as new ISAs are supported.
SIMD configuration with runtime feature detection.
Fields§
§avx512f_enabled: boolUnstable: AVX-512F support available (x86_64).
avx2_enabled: boolUnstable: AVX2 support available (x86_64).
fma_enabled: boolUnstable: FMA (Fused Multiply-Add) support available (x86_64).
avx512vnni_enabled: boolUnstable: AVX-512F + AVX-512VNNI support available (x86_64).
neon_enabled: boolUnstable: NEON support available (aarch64/ARM64).
dotprod_enabled: boolUnstable: ARM FEAT_DotProd (SDOT/UDOT instructions) available (aarch64).
Mandatory on Armv8.4+; optional on Armv8.2/v8.3. Always false on non-aarch64.
SDOT kernels must only be dispatched when this is true.
Implementations§
Source§impl SimdConfig
impl SimdConfig
Sourcepub fn simd_available(&self) -> bool
pub fn simd_available(&self) -> bool
Unstable: check if any SIMD is available; logic may expand with new ISAs.
Trait Implementations§
Source§impl Clone for SimdConfig
impl Clone for SimdConfig
Source§fn clone(&self) -> SimdConfig
fn clone(&self) -> SimdConfig
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 SimdConfig
Source§impl Debug for SimdConfig
impl Debug for SimdConfig
Auto Trait Implementations§
impl Freeze for SimdConfig
impl RefUnwindSafe for SimdConfig
impl Send for SimdConfig
impl Sync for SimdConfig
impl Unpin for SimdConfig
impl UnsafeUnpin for SimdConfig
impl UnwindSafe for SimdConfig
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