Skip to content

Commit

Permalink
fix frequency monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchuanchen committed Jan 13, 2025
1 parent 7e0e4be commit 67f4da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/common/frequency_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class FrequencyMonitorImp : public FrequencyMonitor
#if rocm_smi_VERSION_MAJOR >= 7
auto status2 = rsmi_dev_metrics_xcd_counter_get(m_smiDeviceIndex, &m_XCDCount);

if(status2 != RSMI_STATUS_SUCCESS)
if(status2 != RSMI_STATUS_SUCCESS || m_XCDCount == 0)
{
m_XCDCount = 1;
}
Expand Down

0 comments on commit 67f4da6

Please sign in to comment.