cl.enqueue.kernel: Execute OpenCL kernel

Description Usage Arguments

View source: R/rcl.r

Description

Enqueues an OpenCL kernel to be executed via clEnqueueNDRangeKernel.

Usage

1
2
3
cl.enqueue.kernel(queue, kernel, dimensions, global_work_size, arguments,
  local_work_size = NULL, global_work_offset = NULL, waitlist = NULL,
  return_event = NULL)

Arguments

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.


caffeine-overload/rocl documentation built on May 6, 2019, 7:02 p.m.