GPU_INFO

Trait GPU_INFO 

Source
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§

Source

fn family_id(&self) -> u32

Source

fn chip_external_rev(&self) -> u32

Source

fn device_id(&self) -> u32

Source

fn pci_rev_id(&self) -> u32

Source

fn vram_type(&self) -> u32

Source

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

Source

fn max_memory_clock(&self) -> u64

KHz

Source

fn max_engine_clock(&self) -> u64

KHz

Source

fn ids_flags(&self) -> u64

Source

fn rb_pipes(&self) -> u32

Source

fn cu_active_number(&self) -> u32

Source

fn max_se(&self) -> u32

Source

fn max_sa_per_se(&self) -> u32

Provided Methods§

Source

fn get_family_name(&self) -> FAMILY_NAME

Source

fn get_asic_name(&self) -> ASIC_NAME

Source

fn get_chip_class(&self) -> CHIP_CLASS

Source

fn get_vram_type(&self) -> VRAM_TYPE

Source

fn is_apu(&self) -> bool

Source

fn peak_memory_bw(&self) -> u64

Source

fn peak_memory_bw_gb(&self) -> u64

Source

fn rop_per_rb(&self) -> u32

Source

fn calc_rop_count(&self) -> u32

Source

fn peak_gflops(&self) -> u32

[CU] * [Lane] * 2 [ops] * [GHz]

Source

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

Source

fn find_device_name_or_default(&self) -> String

Returns the default marketing name (“AMD Radeon Graphics”) when the device name is not available.

Source

fn get_max_good_cu_per_sa(&self) -> u32

Source

fn get_min_good_cu_per_sa(&self) -> u32

Source

fn get_l1_cache_size(&self) -> u32

Source

fn get_gl1_cache_size(&self) -> u32

Implementors§