Learn R Programming

ProFit (version 1.3.3)

profitOpenCLEnvInfo: Discover System Available OpenCL GPUs

Description

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

Usage

profitOpenCLEnvInfo()

Arguments

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) ) )

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.

See Also

profitOpenCLEnv, profitClearCache profitMakeModel, profitSetupData

Examples

Run this code
# NOT RUN {
profitOpenCLEnvInfo()
# }

Run the code above in your browser using DataLab