diff --git a/projects/hip-tests/catch/include/hip_test_common.hh b/projects/hip-tests/catch/include/hip_test_common.hh index 7f9e859cd0..d4c44a813f 100644 --- a/projects/hip-tests/catch/include/hip_test_common.hh +++ b/projects/hip-tests/catch/include/hip_test_common.hh @@ -352,13 +352,13 @@ template <> struct MemTraits { namespace { -static __global__ void waitKernel(clock_t offset) { +static __global__ void waitKernel(size_t offset) { auto start = clock(); while ((clock() - start) < offset) { } } -static __global__ void waitKernel_gfx11(clock_t offset) { +static __global__ void waitKernel_gfx11(size_t offset) { #if HT_AMD auto start = wall_clock64(); while ((wall_clock64() - start) < offset) { @@ -374,8 +374,8 @@ static size_t findTicksPerSecond() { int device; HIP_CHECK(hipGetDevice(&device)); HIP_CHECK(hipGetDeviceProperties(&prop, device)); - clock_t devFreq = static_cast(prop.clockRate); // in kHz - clock_t clockTicksPerSecond = devFreq * 1000; + size_t devFreq = static_cast(prop.clockRate); // in kHz + size_t clockTicksPerSecond = devFreq * 1000; // init hipEvent_t start, stop;