2020-12-14 22:06:19 +08:00
|
|
|
/*
|
2021-07-20 00:44:48 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-12-14 22:06:19 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
__kernel void testIndirect(__global long* buf) {
|
|
|
|
size_t gid = get_global_id(0);
|
|
|
|
if (gid == 0) {
|
2021-07-20 00:44:48 +08:00
|
|
|
__global char* val = (__global char*)buf[0];
|
2020-12-14 22:06:19 +08:00
|
|
|
*val = 1;
|
|
|
|
}
|
|
|
|
}
|