Add APIs for PM table and register table
Read the PM table and register table as the name value pair.
Change-Id: Ie44fe67a28af3341bd6beb90d809e90f280351ac
[ROCm/amdsmi commit: ac1ba33371]
This commit is contained in:
committed by
Shuzhou Liu
parent
09125ca639
commit
c7f9cff2cb
@@ -1157,6 +1157,31 @@ amdsmi_status_t amdsmi_get_gpu_metrics_info(
|
||||
reinterpret_cast<rsmi_gpu_metrics_t*>(pgpu_metrics));
|
||||
}
|
||||
|
||||
|
||||
amdsmi_status_t amdsmi_get_gpu_pm_metrics_info(
|
||||
amdsmi_processor_handle processor_handle,
|
||||
amdsmi_name_value_t** pm_metrics,
|
||||
uint32_t *num_of_metrics) {
|
||||
AMDSMI_CHECK_INIT();
|
||||
|
||||
return rsmi_wrapper(rsmi_dev_pm_metrics_info_get, processor_handle,
|
||||
reinterpret_cast<rsmi_name_value_t**>(pm_metrics),
|
||||
num_of_metrics);
|
||||
}
|
||||
|
||||
amdsmi_status_t amdsmi_get_gpu_reg_table_info(
|
||||
amdsmi_processor_handle processor_handle,
|
||||
amdsmi_reg_type_t reg_type,
|
||||
amdsmi_name_value_t** reg_metrics,
|
||||
uint32_t *num_of_metrics) {
|
||||
AMDSMI_CHECK_INIT();
|
||||
|
||||
return rsmi_wrapper(rsmi_dev_reg_table_info_get, processor_handle,
|
||||
static_cast<rsmi_reg_type_t>(reg_type),
|
||||
reinterpret_cast<rsmi_name_value_t**>(reg_metrics),
|
||||
num_of_metrics);
|
||||
}
|
||||
|
||||
amdsmi_status_t
|
||||
amdsmi_get_power_cap_info(amdsmi_processor_handle processor_handle,
|
||||
uint32_t sensor_ind,
|
||||
|
||||
Reference in New Issue
Block a user