Learn R Programming

ProFit (version 1.3.3)

profitGetOpenCLEnvs: Get available OpenCL environments

Description

This function returns a data.frame with information on available OpenCL environments, which can be used to integrate profiles and/or convolve images with CPUs and GPUs and passed on to profitBenchmark.

Usage

profitGetOpenCLEnvs(name = "opencl", make.envs = FALSE)

Arguments

name

String; the name to give all of the environments. The name can be passed as the method to functions like profitMakeConvolver.

make.envs

Logical; whether to actually initialize all of the environments or simply list them.

Value

The output is a data.frame with information on every device for each available environment.

Note, if the sub-list returned by profitOpenCLEnvInfo has NULL devices then that openCL device will be skipped when compiling this data.frame.

See Also

profitBenchmark, profitMakeConvolver, profitOpenCLEnv

Examples

Run this code
# NOT RUN {
envs = profitGetOpenCLEnvs(make.envs=FALSE)
print(envs)
str(envs)
# }

Run the code above in your browser using DataLab