profitOpenCLEnvInfo: Discover System Available OpenCL GPUs

Description Usage Details Value Author(s) See Also Examples

View source: R/profitHPC.R

Description

This helper function discovers all accessible GPUs that can be used by OpenCL.

Usage

1

Details

The output from this function has to be interpreted by the user to decide which device and platform should be used. There might be one available GPU that is much faster than the others, so some experimentation may be necessary.

Value

List; complex structure containing one or more platforms at the highest level, and within each platform a list of one or more devices. Each platform has "name" and "opencl_version" elements, and each device has "name" and "supports_double" elements.

An example running on a MacBook pro might look like:

[[plat_idx]]list(
name = "Apple" (Character; platform name)
opencl_version = 1.2 (Numeric; OpenCL version)
[[dev_idx]]list(
name = "GeForce GT 650M" (Character; device name)
supports_double = TRUE (Logical; does the device support double precision)
)
)

Author(s)

Rodrigo Tobar & Aaron Robotham

See Also

profitOpenCLEnv, profitClearCache profitMakeModel, profitSetupData

Examples

1

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