compute-runtime/opencl/test/unit_test/test_files/indirect_access_kernel.cl

15 lines
251 B
Common Lisp
Raw Normal View History

/*
* 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;
}
}