SWDEV-286739 - Support hipDeviceAttributeWallClockRate

Part 3: Add missing declaration of wall_clock64() to fix
compiling issue in device code.
Add querying hipDeviceAttributeWallClockRate.

Change-Id: Ie54771c2f58eeaacdc0248bc116ef193f99eb9b9
This commit is contained in:
Tao Sang
2022-07-08 21:34:21 -04:00
کامیت شده توسط Tao Sang
والد f61a87ebb2
کامیت 9f9fd859db
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
@@ -195,6 +195,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
case hipDeviceAttributeClockRate:
*pi = prop.clockRate;
break;
case hipDeviceAttributeWallClockRate:
*pi = g_devices[device]->devices()[0]->info().wallClockFrequency_;
break;
case hipDeviceAttributeMemoryClockRate:
*pi = prop.memoryClockRate;
break;