diff options
author | Jack Frankland <30410009+FranklandJack@users.noreply.github.com> | 2022-10-03 14:32:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 14:32:11 +0100 |
commit | 28e76e532a60dbe334bb3bcd729ef715adc8b1dc (patch) | |
tree | e9da22271d31529c552c8ae0732e702438bb6230 | |
parent | a3294d4c9542df3329fcf528429b7b1285cf4ebf (diff) | |
download | OpenCL-CTS-28e76e532a60dbe334bb3bcd729ef715adc8b1dc.tar.gz |
Add missing type declaration (#1520)
Add a missing type declaration to OpenCL C code strings in 2D async copy
tests.
-rw-r--r-- | test_conformance/basic/test_async_copy2D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |