diff --git a/projects/hip-tests/catch/include/utils.hh b/projects/hip-tests/catch/include/utils.hh index 74c12d0a42..89ad917174 100644 --- a/projects/hip-tests/catch/include/utils.hh +++ b/projects/hip-tests/catch/include/utils.hh @@ -169,6 +169,10 @@ inline void LaunchDelayKernel(const std::chrono::milliseconds interval, const hi int ticks_per_ms = 0; #if HT_AMD HIPCHECK(hipDeviceGetAttribute(&ticks_per_ms, hipDeviceAttributeWallClockRate, 0)); + if (ticks_per_ms == 0) { + std::cout << "clkFrequency = 0, set it to 1000KHz\n"; + ticks_per_ms = 1000; + } #endif #if HT_NVIDIA HIPCHECK(hipDeviceGetAttribute(&ticks_per_ms, hipDeviceAttributeClockRate, 0));