Add kernel fixture with stateless indirect access

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2020-12-14 14:06:19 +00:00
committed by Compute-Runtime-Automation
parent 7bfa71636a
commit b2cae02f66
7 changed files with 88 additions and 8 deletions

View File

@ -0,0 +1,14 @@
/*
* 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;
}
}

View File

@ -0,0 +1,8 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
-cl-intel-greater-than-4GB-buffer-required