Add energy counter resolution to rsmi_dev_energy_count_get
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Change-Id: I03b70968257db7a45e21d7ba62542cdedd18eb85
[ROCm/amdsmi commit: 844acbc0d8]
这个提交包含在:
1 父节点
f225c95878
当前提交
52dc52654d
3 个文件已更改
+17
-7
没有与搜索条件相匹配的文件
@@ -1603,6 +1603,8 @@ rsmi_dev_power_ave_get(uint32_t dv_ind, uint32_t sensor_ind, uint64_t *power);
|
||||
* accumulates all energy consumed.
|
||||
*
|
||||
* @param[in] dv_ind a device index
|
||||
* @param[inout] counter_resolution resolution of the counter @p power in
|
||||
* micro Joules
|
||||
*
|
||||
* @param[inout] power a pointer to uint64_t to which the energy
|
||||
* counter will be written
|
||||
@@ -1620,8 +1622,8 @@ rsmi_dev_power_ave_get(uint32_t dv_ind, uint32_t sensor_ind, uint64_t *power);
|
||||
* @retval ::RSMI_STATUS_INVALID_ARGS the provided arguments are not valid
|
||||
*/
|
||||
rsmi_status_t
|
||||
rsmi_dev_energy_count_get(uint32_t dv_ind,
|
||||
uint64_t *power, uint64_t *timestamp);
|
||||
rsmi_dev_energy_count_get(uint32_t dv_ind, uint64_t *power,
|
||||
float *counter_resolution, uint64_t *timestamp);
|
||||
|
||||
/**
|
||||
* @brief Get the cap on power which, when reached, causes the system to take
|
||||
|
||||
在新工单中引用
屏蔽一个用户