2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2020-02-23 05:21:06 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
__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;
|
|
|
|
};
|