Files
compute-runtime/opencl/test/unit_test/test_files/indirect_access_kernel.cl
Slawomir Milczarek b2cae02f66 Add kernel fixture with stateless indirect access
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-12-15 13:23:37 +01:00

15 lines
251 B
Common Lisp

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
__kernel void testIndirect(__global long* buf) {
size_t gid = get_global_id(0);
if (gid == 0) {
char* val = (char*)buf[0];
*val = 1;
}
}