summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2014-12-02 09:31:08 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-12-02 17:17:01 +0800
commit07809dc3aac221663c32476a4f276da4b4e6b611 (patch)
treea97357eed938242fa6a99efcc2998b0b5a5b18cd /kernels
parentbefcef65ce5a87a91967974a53d5e77e2b16d136 (diff)
add utest of CL_MEM_ALLOC_HOST_PTR
Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/runtime_alloc_host_ptr_buffer.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernels/runtime_alloc_host_ptr_buffer.cl b/kernels/runtime_alloc_host_ptr_buffer.cl
new file mode 100644
index 00000000..290241d8
--- /dev/null
+++ b/kernels/runtime_alloc_host_ptr_buffer.cl
@@ -0,0 +1,6 @@
+__kernel void
+runtime_alloc_host_ptr_buffer(__global int* buf)
+{
+ int id = (int)get_global_id(0);
+ buf[id] = id / 2;
+}