- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the Open CL2.0 Specification 6.13.17, it refered as:
void (^my_block_A)(void) =
^{ size_t id = get_global_id(0);
b[id] += a[id];
Last Revision Date: 11/15/13 Page 163
};
// enqueue the block variable
enqueue_kernel(get_default_queue(),
CLK_ENQUEUE_FLAGS_WAIT_KERNEL,
ndrange,
my_block_A);
// or we could have done the following
enqueue_kernel(get_default_queue(),
CLK_ENQUEUE_FLAGS_WAIT_KERNEL,
ndrange,
^{ size_t id = get_global_id(0);
b[id] += a[id];
};
}
but when I use it in the kernel program, it shows the error"use of undeclared identifier 'ndrange_t'", What it lacks?What should I do?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Current Intel SDK OpenCL implementation supports 1.2 version. OpenCL 2.0 implementation has not been released yet.
Thanks,
Yuri

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page