profitGetOpenCLEnvs: Get available OpenCL environments

View source: R/profitUtility.R

profitGetOpenCLEnvsR Documentation

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.

Author(s)

Dan Taranu

See Also

profitBenchmark, profitMakeConvolver, profitOpenCLEnv

Examples

envs = profitGetOpenCLEnvs(make.envs=FALSE)
print(envs)
str(envs)

ICRAR/ProFit documentation built on Feb. 1, 2024, 9:34 a.m.