2
0

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
Este cometimento está contido em:
Tao Sang
2022-07-08 21:34:21 -04:00
cometido por Tao Sang
ascendente f61a87ebb2
cometimento 9f9fd859db
2 ficheiros modificados com 6 adições e 2 eliminações
+3 -2
Ver ficheiro
@@ -689,6 +689,7 @@ __device__ long long int __clock64();
__device__ long long int __clock();
__device__ long long int clock64();
__device__ long long int clock();
__device__ long long int wall_clock64();
// hip.amdgcn.bc - named sync
__device__ void __named_sync();
@@ -713,8 +714,8 @@ __device__
inline __attribute((always_inline))
long long int __clock() { return __clock64(); }
// Clock function to return wall clock count at a constant frequency. The interface to query
// the frequency will be implemented.
// Clock function to return wall clock count at a constant frequency that can be queried
// through hipDeviceAttributeWallClockRate attribute.
__device__
inline __attribute__((always_inline))
long long int wall_clock64() {