diff --git a/source/lib/rocprof-sys/library/rocm_smi.cpp b/source/lib/rocprof-sys/library/rocm_smi.cpp index c4fee7df..4df2ce9d 100644 --- a/source/lib/rocprof-sys/library/rocm_smi.cpp +++ b/source/lib/rocprof-sys/library/rocm_smi.cpp @@ -154,8 +154,8 @@ data::sample(uint32_t _dev_id) &m_busy_perc); ROCPROFSYS_RSMI_GET(get_settings(m_dev_id).temp, rsmi_dev_temp_metric_get, _dev_id, RSMI_TEMP_TYPE_JUNCTION, RSMI_TEMP_CURRENT, &m_temp); - RSMI_POWER_TYPE power_type = RSMI_CURRENT_POWER; - ROCPROFSYS_RSMI_GET(get_settings(m_dev_id).power, rsmi_dev_power_get, _dev_id, &m_power, + RSMI_POWER_TYPE power_type = RSMI_CURRENT_POWER; + ROCPROFSYS_RSMI_GET(get_settings(m_dev_id).power, rsmi_dev_power_get, _dev_id, &m_power, &power_type) ROCPROFSYS_RSMI_GET(get_settings(m_dev_id).mem_usage, rsmi_dev_memory_usage_get, _dev_id, RSMI_MEM_TYPE_VRAM, &m_mem_usage);