profitGetOpenCLEnvs: Get available OpenCL environments

Description Usage Arguments Value Author(s) See Also Examples

View source: R/profitUtility.R

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

1
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.

Author(s)

Dan Taranu

See Also

profitBenchmark, profitMakeConvolver, profitOpenCLEnv

Examples

1
2
3
envs = profitGetOpenCLEnvs(make.envs=FALSE)
print(envs)
str(envs)

ProFit documentation built on Nov. 11, 2019, 5:07 p.m.