View source: R/custom_opencl.R
setup_opencl | R Documentation |
Generates a data.frame
of argument definitions
for use in custom_opencl
setup_opencl(objects, intents, queues, kernel_maps = NULL)
objects |
character vector of gpuR objects to be passed |
intents |
character vector specifying 'intent' of gpuR objects.
options include |
queues |
list of character vectors reflecting equal length to |
kernel_maps |
The corresponding arguments names in the provided OpenCL kernel corresponds to the gpuR objects passed and contains a character vector of which kernels the object will be enqueued. |
A data.frame
with columns:
object
:The name of the gpuR object.
intents
:The intent of the object, specified as 'IN', 'OUT', or 'INOUT'.
queues
:A character vector reflecting equal length to objects
,
where each element reflects a kernel function defined in an OpenCL kernel file.
map
:The corresponding arguments names in the provided OpenCL kernel corresponding to the gpuR objects passed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.