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:
@@ -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));
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário