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:
Dominik Dabek
2022-08-11 11:22:57 +02:00
committed by Compute-Runtime-Automation
parent bc605f413c
commit 0263ec0d84
4 changed files with 10 additions and 4 deletions

View File

@@ -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);