diff --git a/projects/hip/samples/0_Intro/square/square.hipref.cpp b/projects/hip/samples/0_Intro/square/square.hipref.cpp index b8213e0074..80ff2a00bf 100644 --- a/projects/hip/samples/0_Intro/square/square.hipref.cpp +++ b/projects/hip/samples/0_Intro/square/square.hipref.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. */ template __global__ void vector_square(T* C_d, const T* A_d, size_t N) { - size_t offset = (blockIdx.x * blockDim_x + threadIdx.x); + size_t offset = (blockIdx.x * blockDim.x + threadIdx.x); size_t stride = blockDim.x * gridDim.x; for (size_t i = offset; i < N; i += stride) {