Generates a data.frame
of argument definitions
for use in custom_opencl
setup_opencl(objects, intents, queues, kernel_maps = NULL)
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.
character vector of gpuR objects to be passed
character vector specifying 'intent' of gpuR objects.
options include "IN"
,"OUT"
,"INOUT"
list of character vectors reflecting equal length to "objects"
where each element reflects a kernel function defined in an OpenCL kernel file.
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.