#[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
List of AMDGPU ASIC name ref: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/amd/common/amd_family.h
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
impl ASIC_NAME
pub const CHIP_CYAN_SKILLFISH: ASIC_NAME = Self::CHIP_GFX1013
Sourcepub fn get(family: FAMILY_NAME, chip_external_rev: u32) -> ASIC_NAME
pub fn get(family: FAMILY_NAME, chip_external_rev: u32) -> ASIC_NAME
Get the ASIC name from FAMILY_NAME and chip_external_rev
Sourcepub fn chip_class(&self) -> CHIP_CLASS
pub fn chip_class(&self) -> CHIP_CLASS
Get CHIP_CLASS from ASIC_NAME
Sourcepub fn rbplus_allowed(&self) -> bool
pub fn rbplus_allowed(&self) -> bool
Check if RB+ is allowed
Sourcepub fn has_packed_math_16bit(&self) -> bool
pub fn has_packed_math_16bit(&self) -> bool
Check if packed math instructions is supported
Sourcepub fn has_accelerated_dot_product(&self) -> bool
pub fn has_accelerated_dot_product(&self) -> bool
Check if dot product instructions is supported
pub fn max_wave64_per_simd(&self) -> u8
Sourcepub fn num_simd_per_cu(&self) -> u8
pub fn num_simd_per_cu(&self) -> u8
Number of SIMD units per CU
pub fn cu_group(&self) -> u8
Sourcepub fn l1_cache_size(&self) -> u32
pub fn l1_cache_size(&self) -> u32
GCN L1 cache per CU, Byte
Sourcepub fn gl1_cache_size(&self) -> u32
pub fn gl1_cache_size(&self) -> u32
RDNA L1 cache per ShaderArray, Byte
Sourcepub fn l2_cache_size_per_block(&self) -> u32
pub fn l2_cache_size_per_block(&self) -> u32
L2 (Texture) cache size per block (channel), Byte
Sourcepub fn l2_cache_line_size(&self) -> u32
pub fn l2_cache_line_size(&self) -> u32
L2 (Texture) cache line size, Byte
Sourcepub fn l3_cache_size_mb_per_channel(&self) -> u32
pub fn l3_cache_size_mb_per_channel(&self) -> u32
L3 cache (MALL, Infinity Cache) size per memory channel, MiB
Sourcepub fn get_llvm_processor_name(&self, llvm_major_ver: usize) -> &str
pub fn get_llvm_processor_name(&self, llvm_major_ver: usize) -> &str
Processor name for LLVM
Sourcepub fn get_gfx_target_name(&self) -> &str
pub fn get_gfx_target_name(&self) -> &str
Target name (GPU ID, GFX ID) for LLVM ref: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/amd/common/amd_family.c
Trait Implementations§
Source§impl From<ASIC_NAME> for CHIP_CLASS
impl From<ASIC_NAME> for CHIP_CLASS
Source§fn from(asic_name: ASIC_NAME) -> CHIP_CLASS
fn from(asic_name: ASIC_NAME) -> CHIP_CLASS
Converts to this type from the input type.
Source§impl PartialOrd for ASIC_NAME
impl PartialOrd for ASIC_NAME
impl Copy for ASIC_NAME
impl Eq for ASIC_NAME
impl StructuralPartialEq for ASIC_NAME
Auto Trait Implementations§
impl Freeze for ASIC_NAME
impl RefUnwindSafe for ASIC_NAME
impl Send for ASIC_NAME
impl Sync for ASIC_NAME
impl Unpin for ASIC_NAME
impl UnwindSafe for ASIC_NAME
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