#[repr(C)]pub struct amdgpu_gpu_info {Show 31 fields
pub asic_id: u32,
pub chip_rev: u32,
pub chip_external_rev: u32,
pub family_id: u32,
pub ids_flags: u64,
pub max_engine_clk: u64,
pub max_memory_clk: u64,
pub num_shader_engines: u32,
pub num_shader_arrays_per_engine: u32,
pub avail_quad_shader_pipes: u32,
pub max_quad_shader_pipes: u32,
pub cache_entries_per_quad_pipe: u32,
pub num_hw_gfx_contexts: u32,
pub rb_pipes: u32,
pub enabled_rb_pipes_mask: u32,
pub gpu_counter_freq: u32,
pub backend_disable: [u32; 4],
pub mc_arb_ramcfg: u32,
pub gb_addr_cfg: u32,
pub gb_tile_mode: [u32; 32],
pub gb_macro_tile_mode: [u32; 16],
pub pa_sc_raster_cfg: [u32; 4],
pub pa_sc_raster_cfg1: [u32; 4],
pub cu_active_number: u32,
pub cu_ao_mask: u32,
pub cu_bitmap: [[u32; 4]; 4],
pub vram_type: u32,
pub vram_bit_width: u32,
pub ce_ram_size: u32,
pub vce_harvest_config: u32,
pub pci_rev_id: u32,
}Fields§
§asic_id: u32§chip_rev: u32§chip_external_rev: u32§family_id: u32§ids_flags: u64§max_engine_clk: u64§max_memory_clk: u64§num_shader_engines: u32§num_shader_arrays_per_engine: u32§avail_quad_shader_pipes: u32§max_quad_shader_pipes: u32§cache_entries_per_quad_pipe: u32§num_hw_gfx_contexts: u32§rb_pipes: u32§enabled_rb_pipes_mask: u32§gpu_counter_freq: u32§backend_disable: [u32; 4]§mc_arb_ramcfg: u32§gb_addr_cfg: u32§gb_tile_mode: [u32; 32]§gb_macro_tile_mode: [u32; 16]§pa_sc_raster_cfg: [u32; 4]§pa_sc_raster_cfg1: [u32; 4]§cu_active_number: u32§cu_ao_mask: u32§cu_bitmap: [[u32; 4]; 4]§vram_type: u32§vram_bit_width: u32§ce_ram_size: u32§vce_harvest_config: u32§pci_rev_id: u32Trait Implementations§
Source§impl Clone for amdgpu_gpu_info
impl Clone for amdgpu_gpu_info
Source§fn clone(&self) -> amdgpu_gpu_info
fn clone(&self) -> amdgpu_gpu_info
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for amdgpu_gpu_info
impl Debug for amdgpu_gpu_info
Source§impl GPU_INFO for amdgpu_gpu_info
impl GPU_INFO for amdgpu_gpu_info
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
Source§fn 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
Source§fn max_memory_clock(&self) -> u64
fn max_memory_clock(&self) -> u64
KHz
Source§fn 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
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
Source§fn peak_gflops(&self) -> u32
fn peak_gflops(&self) -> u32
[CU] * [Lane] * 2 [ops] * [GHz]
Source§fn find_device_name(&self) -> Option<String>
fn find_device_name(&self) -> Option<String>
Find device marketing name from
Link: https://gitlab.freedesktop.org/mesa/drm/-/blob/main/data/amdgpu.ids
amdgpu.idsLink: https://gitlab.freedesktop.org/mesa/drm/-/blob/main/data/amdgpu.ids
Source§fn 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.
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
impl Copy for amdgpu_gpu_info
Auto Trait Implementations§
impl Freeze for amdgpu_gpu_info
impl RefUnwindSafe for amdgpu_gpu_info
impl Send for amdgpu_gpu_info
impl Sync for amdgpu_gpu_info
impl Unpin for amdgpu_gpu_info
impl UnwindSafe for amdgpu_gpu_info
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