oclPlatforms retrieves all available OpenCL platforms.

oclPlatforms()

Value

List of available OpenCL platforms. If using OpenCL with Installable Client Driver (ICD) support, the result can be an empty list if no vendor ICD can be found. A warning is also issued in that case.

Author

Simon Urbanek

See also

Examples

print(oclPlatforms())
#> Warning: No OpenCL platforms found - try adding Installable Client Drivers (ICD) for your hardware.
#> list()