diff --git a/projects/hip-tests/catch/unit/memory/hipHostMalloc.cc b/projects/hip-tests/catch/unit/memory/hipHostMalloc.cc index edc6e128fc..6e4c06eb24 100644 --- a/projects/hip-tests/catch/unit/memory/hipHostMalloc.cc +++ b/projects/hip-tests/catch/unit/memory/hipHostMalloc.cc @@ -48,7 +48,7 @@ static constexpr size_t sizeBytes{numElements * sizeof(int)}; #if HT_AMD static __global__ void kerTestMemAccess(char *buf) { - int myId = threadIdx.x + blockDim.x * blockIdx.x; + size_t myId = threadIdx.x + blockDim.x * blockIdx.x; buf[myId] = VALUE; } #endif