SWDEV-526773 - Modify LaunchDelayKernel to set a hard coded WallClock… (#1911)

* SWDEV-526773 - Modify LaunchDelayKernel to set a hard coded WallClock value when it's not avaliable

* Change hardcode clockrate in unit of KHz.
Esse commit está contido em:
Victor Zhang
2025-11-25 11:21:03 -05:00
commit de GitHub
commit 92fcc928b6
+4
Ver Arquivo
@@ -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));