pub struct PlatformCapabilities {
pub simd_available: bool,
pub gpu_available: bool,
pub cuda_available: bool,
pub opencl_available: bool,
pub metal_available: bool,
pub avx2_available: bool,
pub avx512_available: bool,
pub neon_available: bool,
}Expand description
Platform capability detection
Fields§
§simd_available: bool§gpu_available: bool§cuda_available: bool§opencl_available: bool§metal_available: bool§avx2_available: bool§avx512_available: bool§neon_available: boolImplementations§
Source§impl PlatformCapabilities
impl PlatformCapabilities
Sourcepub fn has_avx512(&self) -> bool
pub fn has_avx512(&self) -> bool
Check if AVX512 is available
Sourcepub fn cache_line_size(&self) -> usize
pub fn cache_line_size(&self) -> usize
Get the cache line size in bytes
Trait Implementations§
Source§impl Clone for PlatformCapabilities
impl Clone for PlatformCapabilities
Source§fn clone(&self) -> PlatformCapabilities
fn clone(&self) -> PlatformCapabilities
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 PlatformCapabilities
impl Debug for PlatformCapabilities
impl Copy for PlatformCapabilities
Auto Trait Implementations§
impl Freeze for PlatformCapabilities
impl RefUnwindSafe for PlatformCapabilities
impl Send for PlatformCapabilities
impl Sync for PlatformCapabilities
impl Unpin for PlatformCapabilities
impl UnwindSafe for PlatformCapabilities
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more