2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-04-20 13:58:48 +08:00
|
|
|
__kernel __attribute__((reqd_work_group_size(8, 4, 4)))
|
2017-12-21 07:45:38 +08:00
|
|
|
void CopyBuffer(
|
|
|
|
__global unsigned int *src,
|
|
|
|
__global unsigned int *dst)
|
|
|
|
{
|
|
|
|
int id = (int)get_global_id(0);
|
|
|
|
dst[id] = src[id];
|
|
|
|
}
|
|
|
|
|
|
|
|
__kernel __attribute__((reqd_work_group_size(1, 1, 1)))
|
|
|
|
void CopyBuffer2(
|
|
|
|
__global unsigned int *src,
|
|
|
|
__global unsigned int *dst)
|
|
|
|
{
|
|
|
|
int id = (int)get_global_id(0);
|
|
|
|
dst[id] = src[id];
|
|
|
|
}
|