oclDevices: Get a list of OpenCL devices.

View source: R/ocl.R

oclDevicesR Documentation

Get a list of OpenCL devices.

Description

oclDevices retrieves a list of OpenCL devices for the given platform.

Usage

oclDevices(platform = oclPlatforms()[[1]],
           type = c("all", "cpu", "gpu", "accelerator", "default"))

Arguments

platform

OpenCL platform (see oclPlatforms)

type

Desired device type, character vector of length one. Valid values are "cpu", "gpu", "accelerator", "all", "default". Partial matches are allowed.

Value

List of devices. May be empty.

Author(s)

Simon Urbanek

See Also

oclPlatforms

Examples

p <- oclPlatforms()
if (length(p))
    print(oclDevices(p[[1]], "all"))

s-u/OpenCL documentation built on March 15, 2024, 6:44 a.m.