From 28e76e532a60dbe334bb3bcd729ef715adc8b1dc Mon Sep 17 00:00:00 2001 From: Jack Frankland <30410009+FranklandJack@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:32:11 +0100 Subject: [PATCH] Add missing type declaration (#1520) Add a missing type declaration to OpenCL C code strings in 2D async copy tests. --- test_conformance/basic/test_async_copy2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/basic/test_async_copy2D.cpp b/test_conformance/basic/test_async_copy2D.cpp index 54633a31..bf3f1552 100644 --- a/test_conformance/basic/test_async_copy2D.cpp +++ b/test_conformance/basic/test_async_copy2D.cpp @@ -53,7 +53,7 @@ __kernel void test_fn(const __global %s *src, __global %s *dst, for (int i = 0; i < lineCopiesPerWorkItem; i++) { for (int j = 0; j < numElementsPerLine; j++) { - const local_index = (get_local_id(0) * lineCopiesPerWorkItem + i) * dstStride + j; + const int local_index = (get_local_id(0) * lineCopiesPerWorkItem + i) * dstStride + j; const int global_index = (get_global_id(0) * lineCopiesPerWorkItem + i) * dstStride + j; dst[global_index] = localBuffer[local_index]; }