Learn R Programming

OpenCL (version 0.2-10)

oclInfo: Retrieve information about an OpenCL object.

Description

Some OpenCL obejcts have information tokens associated with them. For example the device obejct has a name, vendor, list of extensions etc. oclInfo returns a list of such properties for the given object.

Usage

oclInfo(item)
# S3 method for clDeviceID
oclInfo(item)
# S3 method for clPlatformID
oclInfo(item)
# S3 method for list
oclInfo(item)

Value

List of properties. The properties vary by object type. Some common properties are "name", "vendor", "version",

"profile" and "exts".

Arguments

item

object to retrieve information properties from

Author

Simon Urbanek

Examples

Run this code
p <- oclPlatforms()
if (length(p)) {
    cat("== Platform information:\n")
    print(oclInfo(p[[1]]))
    d <- oclDevices(p[[1]])
    if (length(d)) {
        cat("== Device information:\n")
        print(oclInfo(d))
    }
}

Run the code above in your browser using DataLab