mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
25 lines
493 B
Common Lisp
25 lines
493 B
Common Lisp
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
__kernel __attribute__((reqd_work_group_size(8, 4, 4)))
|
|
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];
|
|
}
|