setup3: Function to invoke OpenCL package and create kernels

Description Usage Arguments Value Author(s) Examples

Description

This function sets up the OpenCL environment and creates kernels. It depends on the OpenCL package.

Usage

1
setup3(dev)

Arguments

dev

device list from OpenCL package function oclDevices

Value

List of OpenCL kernels

Author(s)

Kate Cowles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
## Not run: 
require(OpenCL)
plat <- oclPlatforms()
dev <- oclDevices( plat[[1]] )
if(!any(grepl("cl_khr_fp64", oclInfo(dev[[1]])$exts)))
    stop("GPU with double precision and Open CL capabilities required.")

k.sampling <- setup3(dev=dev)

## End(Not run)


Search within the CARrampsOcl package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.