summaryrefslogtreecommitdiff
path: root/kernels/compiler_async_copy_and_prefetch.cl
blob: 7489bb08e2b00b29c0624f317e0516e672c1035b (plain)
1
2
3
4
5
6
7
8
9
/* test OpenCL 1.1 Async Copies and Prefetch Functions (section 6.11.10) */
kernel void compiler_async_copy_and_prefetch(__global float *p) {
  prefetch(p, 10);
  local float l[10];
  event_t e[2];
  async_work_group_copy(l, p, 10, 0);
  async_work_group_copy(p, l, 10, 0);
  wait_group_events(2, e);
}