Enum ASIC_NAME

Source
#[repr(u32)]
pub enum ASIC_NAME {
Show 100 variants CHIP_UNKNOWN = 0, CHIP_R300 = 1, CHIP_R350 = 2, CHIP_RV350 = 3, CHIP_RV370 = 4, CHIP_RV380 = 5, CHIP_RS400 = 6, CHIP_RC410 = 7, CHIP_RS480 = 8, CHIP_R420 = 9, CHIP_R423 = 10, CHIP_R430 = 11, CHIP_R480 = 12, CHIP_R481 = 13, CHIP_RV410 = 14, CHIP_RS600 = 15, CHIP_RS690 = 16, CHIP_RS740 = 17, CHIP_RV515 = 18, CHIP_R520 = 19, CHIP_RV530 = 20, CHIP_R580 = 21, CHIP_RV560 = 22, CHIP_RV570 = 23, CHIP_R600 = 24, CHIP_RV610 = 25, CHIP_RV630 = 26, CHIP_RV670 = 27, CHIP_RV620 = 28, CHIP_RV635 = 29, CHIP_RS780 = 30, CHIP_RS880 = 31, CHIP_RV770 = 32, CHIP_RV730 = 33, CHIP_RV710 = 34, CHIP_RV740 = 35, CHIP_CEDAR = 36, CHIP_REDWOOD = 37, CHIP_JUNIPER = 38, CHIP_CYPRESS = 39, CHIP_HEMLOCK = 40, CHIP_PALM = 41, CHIP_SUMO = 42, CHIP_SUMO2 = 43, CHIP_BARTS = 44, CHIP_TURKS = 45, CHIP_CAICOS = 46, CHIP_CAYMAN = 47, CHIP_ARUBA = 48, CHIP_TAHITI = 49, CHIP_PITCAIRN = 50, CHIP_VERDE = 51, CHIP_OLAND = 52, CHIP_HAINAN = 53, CHIP_BONAIRE = 54, CHIP_KAVERI = 55, CHIP_KABINI = 56, CHIP_HAWAII = 57, CHIP_TONGA = 58, CHIP_ICELAND = 59, CHIP_CARRIZO = 60, CHIP_FIJI = 61, CHIP_STONEY = 62, CHIP_POLARIS10 = 63, CHIP_POLARIS11 = 64, CHIP_POLARIS12 = 65, CHIP_VEGAM = 66, CHIP_VEGA10 = 67, CHIP_VEGA12 = 68, CHIP_VEGA20 = 69, CHIP_RAVEN = 70, CHIP_RAVEN2 = 71, CHIP_RENOIR = 72, CHIP_ARCTURUS = 73, CHIP_ALDEBARAN = 74, CHIP_GFX940 = 75, CHIP_NAVI10 = 76, CHIP_NAVI12 = 77, CHIP_NAVI14 = 78, CHIP_GFX1013 = 79, CHIP_NAVI21 = 80, CHIP_NAVI22 = 81, CHIP_VANGOGH = 82, CHIP_NAVI23 = 83, CHIP_NAVI24 = 84, CHIP_REMBRANDT = 85, CHIP_GFX1036 = 86, CHIP_GFX1100 = 87, CHIP_GFX1101 = 88, CHIP_GFX1102 = 89, CHIP_GFX1103_R1 = 90, CHIP_GFX1103_R2 = 91, CHIP_GFX1103_R1X = 92, CHIP_GFX1103_R2X = 93, CHIP_GFX1150 = 94, CHIP_GFX1151 = 95, CHIP_GFX1152 = 96, CHIP_GFX1153 = 97, CHIP_GFX1200 = 98, CHIP_GFX1201 = 99,
}
Expand description

Variants§

§

CHIP_UNKNOWN = 0

§

CHIP_R300 = 1

§

CHIP_R350 = 2

§

CHIP_RV350 = 3

§

CHIP_RV370 = 4

§

CHIP_RV380 = 5

§

CHIP_RS400 = 6

§

CHIP_RC410 = 7

§

CHIP_RS480 = 8

§

CHIP_R420 = 9

§

CHIP_R423 = 10

§

CHIP_R430 = 11

§

CHIP_R480 = 12

§

CHIP_R481 = 13

§

CHIP_RV410 = 14

§

CHIP_RS600 = 15

§

CHIP_RS690 = 16

§

CHIP_RS740 = 17

§

CHIP_RV515 = 18

§

CHIP_R520 = 19

§

CHIP_RV530 = 20

§

CHIP_R580 = 21

§

CHIP_RV560 = 22

§

CHIP_RV570 = 23

§

CHIP_R600 = 24

§

CHIP_RV610 = 25

§

CHIP_RV630 = 26

§

CHIP_RV670 = 27

§

CHIP_RV620 = 28

§

CHIP_RV635 = 29

§

CHIP_RS780 = 30

§

CHIP_RS880 = 31

§

CHIP_RV770 = 32

§

CHIP_RV730 = 33

§

CHIP_RV710 = 34

§

CHIP_RV740 = 35

§

CHIP_CEDAR = 36

§

CHIP_REDWOOD = 37

§

CHIP_JUNIPER = 38

§

CHIP_CYPRESS = 39

§

CHIP_HEMLOCK = 40

§

CHIP_PALM = 41

§

CHIP_SUMO = 42

§

CHIP_SUMO2 = 43

§

CHIP_BARTS = 44

§

CHIP_TURKS = 45

§

CHIP_CAICOS = 46

§

CHIP_CAYMAN = 47

§

CHIP_ARUBA = 48

§

CHIP_TAHITI = 49

§

CHIP_PITCAIRN = 50

§

CHIP_VERDE = 51

§

CHIP_OLAND = 52

§

CHIP_HAINAN = 53

§

CHIP_BONAIRE = 54

§

CHIP_KAVERI = 55

§

CHIP_KABINI = 56

§

CHIP_HAWAII = 57

§

CHIP_TONGA = 58

§

CHIP_ICELAND = 59

§

CHIP_CARRIZO = 60

§

CHIP_FIJI = 61

§

CHIP_STONEY = 62

§

CHIP_POLARIS10 = 63

§

CHIP_POLARIS11 = 64

§

CHIP_POLARIS12 = 65

§

CHIP_VEGAM = 66

§

CHIP_VEGA10 = 67

§

CHIP_VEGA12 = 68

§

CHIP_VEGA20 = 69

§

CHIP_RAVEN = 70

§

CHIP_RAVEN2 = 71

§

CHIP_RENOIR = 72

§

CHIP_ARCTURUS = 73

§

CHIP_ALDEBARAN = 74

§

CHIP_GFX940 = 75

§

CHIP_NAVI10 = 76

§

CHIP_NAVI12 = 77

§

CHIP_NAVI14 = 78

§

CHIP_GFX1013 = 79

§

CHIP_NAVI21 = 80

§

CHIP_NAVI22 = 81

§

CHIP_VANGOGH = 82

§

CHIP_NAVI23 = 83

§

CHIP_NAVI24 = 84

§

CHIP_REMBRANDT = 85

§

CHIP_GFX1036 = 86

§

CHIP_GFX1100 = 87

§

CHIP_GFX1101 = 88

§

CHIP_GFX1102 = 89

§

CHIP_GFX1103_R1 = 90

§

CHIP_GFX1103_R2 = 91

§

CHIP_GFX1103_R1X = 92

§

CHIP_GFX1103_R2X = 93

§

CHIP_GFX1150 = 94

§

CHIP_GFX1151 = 95

§

CHIP_GFX1152 = 96

§

CHIP_GFX1153 = 97

§

CHIP_GFX1200 = 98

§

CHIP_GFX1201 = 99

Implementations§

Source§

impl ASIC_NAME

Source

pub const CHIP_CYAN_SKILLFISH: ASIC_NAME = Self::CHIP_GFX1013

Source

pub fn get(family: FAMILY_NAME, chip_external_rev: u32) -> ASIC_NAME

Get the ASIC name from FAMILY_NAME and chip_external_rev

Source

pub fn chip_class(&self) -> CHIP_CLASS

Source

pub fn rbplus_allowed(&self) -> bool

Check if RB+ is allowed

Source

pub fn has_packed_math_16bit(&self) -> bool

Check if packed math instructions is supported

Source

pub fn has_accelerated_dot_product(&self) -> bool

Check if dot product instructions is supported

Source

pub fn max_wave64_per_simd(&self) -> u8

Source

pub fn num_simd_per_cu(&self) -> u8

Number of SIMD units per CU

Source

pub fn cu_group(&self) -> u8

Source

pub fn l1_cache_size(&self) -> u32

GCN L1 cache per CU, Byte

Source

pub fn gl1_cache_size(&self) -> u32

RDNA L1 cache per ShaderArray, Byte

Source

pub fn l2_cache_size_per_block(&self) -> u32

L2 (Texture) cache size per block (channel), Byte

Source

pub fn l2_cache_line_size(&self) -> u32

L2 (Texture) cache line size, Byte

Source

pub fn l3_cache_size_mb_per_channel(&self) -> u32

L3 cache (MALL, Infinity Cache) size per memory channel, MiB

Source

pub fn get_llvm_processor_name(&self, llvm_major_ver: usize) -> &str

Processor name for LLVM

Source

pub fn get_gfx_target_name(&self) -> &str

Trait Implementations§

Source§

impl Clone for ASIC_NAME

Source§

fn clone(&self) -> ASIC_NAME

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ASIC_NAME

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for ASIC_NAME

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<ASIC_NAME> for CHIP_CLASS

Source§

fn from(asic_name: ASIC_NAME) -> CHIP_CLASS

Converts to this type from the input type.
Source§

impl PartialEq for ASIC_NAME

Source§

fn eq(&self, other: &ASIC_NAME) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ASIC_NAME

Source§

fn partial_cmp(&self, other: &ASIC_NAME) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for ASIC_NAME

Source§

impl Eq for ASIC_NAME

Source§

impl StructuralPartialEq for ASIC_NAME

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.