mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Add test kernel for indirect allocations
Add kernel for testing indirect allocation address getting passed by value. Needed for future commit. Related-To: NEO-6597 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bc605f413c
commit
0263ec0d84
@@ -35,6 +35,12 @@ kernel void test(const global float *a, const global float *b,
|
||||
printf("local_id = %d, global_id = %d \n", local_id, global_id);
|
||||
}
|
||||
|
||||
__kernel void test_pointer_by_value(long address) {
|
||||
if (address) {
|
||||
((__global int *)address)[get_global_id(0)] += 1;
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void test_get_global_sizes(__global uint *outGlobalSize) {
|
||||
outGlobalSize[0] = get_global_size(0);
|
||||
outGlobalSize[1] = get_global_size(1);
|
||||
|
||||
Reference in New Issue
Block a user