Learn R Programming

gpuR (version 2.0.6)

setup_opencl: Setup OpenCL Arguments

Description

Generates a data.frame of argument definitions for use in custom_opencl

Usage

setup_opencl(objects, intents, queues, kernel_maps = NULL)

Value

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.

Arguments

objects

character vector of gpuR objects to be passed

intents

character vector specifying 'intent' of gpuR objects. options include "IN","OUT","INOUT"

queues

list of character vectors reflecting equal length to "objects" where each element reflects a kernel function defined in an OpenCL kernel file.

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.