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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.