powered by
oclDevices retrieves a list of OpenCL devices for the given platform.
oclDevices
oclDevices(platform = oclPlatforms()[[1]], type = "default")
OpenCL platform (see oclPlatforms)
oclPlatforms
Desired device type, character vector of length one. Valid values are "cpu", "gpu", "accelerator", "all", "default". Partial matches are allowed.
"cpu"
"gpu"
"accelerator"
"all"
"default"
List of devices. May be empty.
# NOT RUN { p <- oclPlatforms() if (length(p)) print(oclDevices, "all") # }
Run the code above in your browser using DataLab