Enqueues an OpenCL kernel to be executed via clEnqueueNDRangeKernel.
1 2 3 |
queue |
An opencl_command_queue object. The queue the operation will be put on. |
kernel |
The kernel to execute. An opencl_kernel object |
dimensions |
The dimensions of the kernel |
global_work_size |
The number of global threads in each dimension |
arguments |
A list of kernel arguments. Must be all opencl_buffer objects. Any names are ignored, the arguments are passed by position. |
local_work_size |
The number of local threads in each dimension inside a work-group. If left NULL, the OpenCL runtime will pick a value. |
global_work_offset |
The starting offset of the global thread ids in each dimension. If left as NULL, defaults to 0 in each dimension. |
waitlist |
OpenCL events that must complete before this operation can start. Not currently used, included for future use. |
return_event |
Schedule the kernel asynchronously and return an opencl event object. Not currently used, included for future use. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.