Skip to main content

CpuQuery

Enum CpuQuery 

Source
#[non_exhaustive]
#[repr(i32)]
pub enum CpuQuery {
Show 36 variants LogicalCount = 0, LittleCount = 1, BigCount = 2, PhysicalCount = 3, PhysicalLittleCount = 4, PhysicalBigCount = 5, L2Bytes = 6, L3Bytes = 7, Avx = 8, Fma = 9, Fma4 = 10, Xop = 11, F16c = 12, Avx2 = 13, AvxVnni = 14, AvxVnniInt8 = 15, AvxVnniInt16 = 16, AvxNeConvert = 17, Avx512 = 18, Avx512Vnni = 19, Avx512Bf16 = 20, Avx512Fp16 = 21, ArmEdsp = 22, ArmNeon = 23, ArmVfpv4 = 24, ArmFp16 = 25, ArmCpuid = 26, ArmDotProduct = 27, ArmFp16Fma = 28, ArmBf16 = 29, ArmI8mm = 30, ArmSve = 31, ArmSve2 = 32, ArmSveBf16 = 33, ArmSveI8mm = 34, ArmSveF32mm = 35,
}
Expand description

Identifies one native CPU capability query.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

LogicalCount = 0

Counts logical processors.

§

LittleCount = 1

Counts processors in the little cluster.

§

BigCount = 2

Counts processors in the big cluster.

§

PhysicalCount = 3

Counts physical cores.

§

PhysicalLittleCount = 4

Counts physical little-cluster cores.

§

PhysicalBigCount = 5

Counts physical big-cluster cores.

§

L2Bytes = 6

Reports the L2 cache size in bytes.

§

L3Bytes = 7

Reports the L3 cache size in bytes.

§

Avx = 8

Reports AVX support.

§

Fma = 9

Reports FMA support.

§

Fma4 = 10

Reports FMA4 support.

§

Xop = 11

Reports XOP support.

§

F16c = 12

Reports F16C support.

§

Avx2 = 13

Reports AVX2 support.

§

AvxVnni = 14

Reports AVX-VNNI support.

§

AvxVnniInt8 = 15

Reports AVX-VNNI-INT8 support.

§

AvxVnniInt16 = 16

Reports AVX-VNNI-INT16 support.

§

AvxNeConvert = 17

Reports AVX-NE-CONVERT support.

§

Avx512 = 18

Reports AVX-512 support.

§

Avx512Vnni = 19

Reports AVX-512 VNNI support.

§

Avx512Bf16 = 20

Reports AVX-512 BF16 support.

§

Avx512Fp16 = 21

Reports AVX-512 FP16 support.

§

ArmEdsp = 22

Reports ARM EDSP support.

§

ArmNeon = 23

Reports ARM NEON support.

§

ArmVfpv4 = 24

Reports ARM VFPv4 support.

§

ArmFp16 = 25

Reports ARM FP16 support.

§

ArmCpuid = 26

Reports whether ARM CPUID queries are available.

§

ArmDotProduct = 27

Reports ARM dot-product support.

§

ArmFp16Fma = 28

Reports ARM FP16 multiply-accumulate support.

§

ArmBf16 = 29

Reports ARM BF16 support.

§

ArmI8mm = 30

Reports ARM INT8 matrix-multiply support.

§

ArmSve = 31

Reports ARM SVE support.

§

ArmSve2 = 32

Reports ARM SVE2 support.

§

ArmSveBf16 = 33

Reports ARM SVE BF16 support.

§

ArmSveI8mm = 34

Reports ARM SVE INT8 matrix-multiply support.

§

ArmSveF32mm = 35

Reports ARM SVE FP32 matrix-multiply support.

Trait Implementations§

Source§

impl Clone for CpuQuery

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CpuQuery

Source§

impl Debug for CpuQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.