ROCm / HIP

HIP: C++ Heterogeneous-Compute Interface for Portability
https://rocmdocs.amd.com/projects/HIP/
MIT License
3.71k stars 528 forks source link

`clock` function is redeclared with the wrong return type #2524

Closed seanbaxter closed 3 months ago

seanbaxter commented 2 years ago

/opt/rocm/include/hip/amd_detail/amd_device_functions.h:995 declaresclock() to have return type long long. ctime.h declares it to have return type clock_t, which is long. Please fix.

ppanchad-amd commented 6 months ago

@seanbaxter Can you please check with latest ROCm 6.0.2 (HIP 6.0.32831)? Thanks!

harkgill-amd commented 3 months ago

Hi @seanbaxter, this issue is no longer seen in ROCm 6.1.2 as there is only a single declaration of clock_t clock() at https://github.com/ROCm/HIP/blob/develop/docs/reference/kernel_language.rst#timer-functions.