Files
compute-runtime/opencl/test/unit_test/test_files/kernel_data_param.cl
kamdiedrich e8852a68c4 Reorganization directory structure [2/n]
Change-Id: I47962d17d755e80dcd9476e1ed75560f433f6115
2020-02-23 12:01:27 +01:00

21 lines
358 B
Common Lisp

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
__kernel void test(__global int *dst) {
int tid = get_global_id(0);
int n = get_global_size(0);
dst[tid] = n;
};
__kernel void test_get_local_size(__global int *dst) {
int tid = get_global_id(0);
int n = get_local_size(0);
dst[tid] = n;
};