oclDevices.RdoclDevices retrieves a list of OpenCL devices for the given platform.
oclDevices(platform = oclPlatforms()[[1]],
type = c("all", "cpu", "gpu", "accelerator", "default"))OpenCL platform (see oclPlatforms)
Desired device type, character vector of length one. Valid
values are "cpu", "gpu", "accelerator",
"all", "default". Partial matches are allowed.
List of devices. May be empty.
p <- oclPlatforms()
#> Warning: No OpenCL platforms found - try adding Installable Client Drivers (ICD) for your hardware.
if (length(p))
print(oclDevices(p[[1]], "all"))