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

15 lines
274 B
Common Lisp

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