pub trait GPU_INFO {
Show 29 methods
// Required methods
fn family_id(&self) -> u32;
fn chip_external_rev(&self) -> u32;
fn device_id(&self) -> u32;
fn pci_rev_id(&self) -> u32;
fn vram_type(&self) -> u32;
fn vram_bit_width(&self) -> u32;
fn max_memory_clock(&self) -> u64;
fn max_engine_clock(&self) -> u64;
fn ids_flags(&self) -> u64;
fn rb_pipes(&self) -> u32;
fn cu_active_number(&self) -> u32;
fn max_se(&self) -> u32;
fn max_sa_per_se(&self) -> u32;
// Provided methods
fn get_family_name(&self) -> FAMILY_NAME { ... }
fn get_asic_name(&self) -> ASIC_NAME { ... }
fn get_chip_class(&self) -> CHIP_CLASS { ... }
fn get_vram_type(&self) -> VRAM_TYPE { ... }
fn is_apu(&self) -> bool { ... }
fn peak_memory_bw(&self) -> u64 { ... }
fn peak_memory_bw_gb(&self) -> u64 { ... }
fn rop_per_rb(&self) -> u32 { ... }
fn calc_rop_count(&self) -> u32 { ... }
fn peak_gflops(&self) -> u32 { ... }
fn find_device_name(&self) -> Option<String> { ... }
fn find_device_name_or_default(&self) -> String { ... }
fn get_max_good_cu_per_sa(&self) -> u32 { ... }
fn get_min_good_cu_per_sa(&self) -> u32 { ... }
fn get_l1_cache_size(&self) -> u32 { ... }
fn get_gl1_cache_size(&self) -> u32 { ... }
}Expand description
Information that amdgpu_gpu_info and drm_amdgpu_info_device have in common
Required Methods§
fn family_id(&self) -> u32
fn chip_external_rev(&self) -> u32
fn device_id(&self) -> u32
fn pci_rev_id(&self) -> u32
fn vram_type(&self) -> u32
Sourcefn vram_bit_width(&self) -> u32
fn vram_bit_width(&self) -> u32
Note: AMDGPU driver reports VRAM width per memory channel for LPDDR5 as 64-bits. https://gitlab.freedesktop.org/drm/amd/-/issues/2468
Sourcefn max_memory_clock(&self) -> u64
fn max_memory_clock(&self) -> u64
KHz
Sourcefn max_engine_clock(&self) -> u64
fn max_engine_clock(&self) -> u64
KHz
fn ids_flags(&self) -> u64
fn rb_pipes(&self) -> u32
fn cu_active_number(&self) -> u32
fn max_se(&self) -> u32
fn max_sa_per_se(&self) -> u32
Provided Methods§
fn get_family_name(&self) -> FAMILY_NAME
fn get_asic_name(&self) -> ASIC_NAME
fn get_chip_class(&self) -> CHIP_CLASS
fn get_vram_type(&self) -> VRAM_TYPE
fn is_apu(&self) -> bool
fn peak_memory_bw(&self) -> u64
fn peak_memory_bw_gb(&self) -> u64
fn rop_per_rb(&self) -> u32
fn calc_rop_count(&self) -> u32
Sourcefn peak_gflops(&self) -> u32
fn peak_gflops(&self) -> u32
[CU] * [Lane] * 2 [ops] * [GHz]
Sourcefn find_device_name(&self) -> Option<String>
fn find_device_name(&self) -> Option<String>
Find device marketing name from amdgpu.ids
Link: https://gitlab.freedesktop.org/mesa/drm/-/blob/main/data/amdgpu.ids
Sourcefn find_device_name_or_default(&self) -> String
fn find_device_name_or_default(&self) -> String
Returns the default marketing name (“AMD Radeon Graphics”) when the device name is not available.