feature: Add get local id test kernel

Related-To: NEO-14415

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
Bellekallu Rajkiran
2025-04-18 10:08:18 +00:00
committed by Compute-Runtime-Automation
parent 990fa0d8a9
commit 092403f041
2 changed files with 15 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -26,6 +26,19 @@ __kernel void test_get_group_count(__global uint *outGroupCount) {
outGroupCount[2] = get_num_groups(2);
}
__kernel void test_get_local_id(__global uint *output) {
unsigned int groupSizeX = get_global_size(0);
unsigned int groupSizeY = get_global_size(1);
unsigned int globalIdX = get_global_id(0);
unsigned int globalIdY = get_global_id(1);
unsigned int globalIdZ = get_global_id(2);
unsigned int globalIndex = globalIdX + globalIdY * groupSizeX + globalIdZ * groupSizeX * groupSizeY;
output[globalIndex] = get_local_size(0);
}
kernel void memcpy_bytes(__global char *dst, const __global char *src) {
unsigned int gid = get_global_id(0);
dst[gid] = src[gid];

View File

@@ -41,7 +41,7 @@ components:
dest_dir: kernels_bin
type: git
branch: kernels_bin
revision: 3382-4024
revision: 3382-4026
kmdaf:
branch: kmdaf
dest_dir: kmdaf