Add amdsmi_get_gpu_pm_metrics_info and amdsmi_get_gpu_reg_table_info to py-interface (v3)

v2: drop depend on libc
v3: whitespace

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Change-Id: I2eff7aa9d4f0ca8635796f82b106ac0d36176346


[ROCm/amdsmi commit: f4506cfd65]
This commit is contained in:
Tom St Denis
2024-08-01 10:49:04 -04:00
parent ef78459f75
commit c59f7b7705
4 changed files with 88 additions and 14 deletions
+12
View File
@@ -3182,6 +3182,18 @@ amdsmi_status_t amdsmi_set_gpu_clk_limit(amdsmi_processor_handle processor_handl
amdsmi_clk_limit_type_t limit_type,
uint64_t clk_value);
/**
* @brief Frees heap memory allocated by reg_table and pm_metrics
*
* @platform{gpu_bm_linux}
*
* @details Frees heap memory.
*
* @param[in] p a pointer to the memory to free.
*
*/
void amdsmi_free_name_value_pairs(void *p);
/**
* @brief This function sets the clock frequency information. It is not supported on
* virtual machine guest