This is a simple implementation which just copies data synchronously.
v2:
- Use size_t.
v3:
- Fix possible race condition by splitting the copy among multiple
work items.
llvm-svn: 219008
10 lines
193 B
Common Lisp
10 lines
193 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
#ifdef cl_khr_fp64
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
|
#endif
|
|
|
|
#define __CLC_BODY <async_work_group_copy.inc>
|
|
#include <clc/async/gentype.inc>
|
|
#undef __CLC_BODY
|