profitOpenCLEnvInfo: Discover System Available OpenCL GPUs

Description Usage Details Value Author(s) See Also Examples

View source: R/profitHPC.R


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




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.


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:

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


Rodrigo Tobar & Aaron Robotham

See Also

profitOpenCLEnv, profitClearCache profitMakeModel, profitSetupData



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