mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add kernel fixture with stateless indirect access
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
7bfa71636a
commit
b2cae02f66
14
opencl/test/unit_test/test_files/indirect_access_kernel.cl
Normal file
14
opencl/test/unit_test/test_files/indirect_access_kernel.cl
Normal 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;
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
-cl-intel-greater-than-4GB-buffer-required
|
Reference in New Issue
Block a user