org.jocl.utils
Class ContextInfos

java.lang.Object
  extended by org.jocl.utils.ContextInfos

public class ContextInfos
extends java.lang.Object

Utility methods for obtaining information about cl_context objects


Method Summary
static org.jocl.cl_device_id[] getDevices(org.jocl.cl_context context)
          The devices associated with the context.
static int getNumDevices(org.jocl.cl_context context)
          The number of devices associated with the context.
static long[] getProperties(org.jocl.cl_context context)
          The properties of the context.
static java.lang.String[] getPropertiesStrings(org.jocl.cl_context context)
          The properties of the context, as Strings.
static int getReferenceCount(org.jocl.cl_context context)
          The reference count.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReferenceCount

public static int getReferenceCount(org.jocl.cl_context context)
The reference count. Only intended for identifying memory leaks.

Parameters:
context - The context
Returns:
The value

getNumDevices

public static int getNumDevices(org.jocl.cl_context context)
The number of devices associated with the context.

Parameters:
context - The context
Returns:
The value

getDevices

public static org.jocl.cl_device_id[] getDevices(org.jocl.cl_context context)
The devices associated with the context.

Parameters:
context - The context
Returns:
The value

getProperties

public static long[] getProperties(org.jocl.cl_context context)
The properties of the context.

Parameters:
context - The context
Returns:
The value

getPropertiesStrings

public static java.lang.String[] getPropertiesStrings(org.jocl.cl_context context)
The properties of the context, as Strings. The strings are the key-value pairs of the properties. The even indices of the properties array are assumed to be of type cl_context_properties, and the odd entries are assumed to be values that are returned in a hexadecimal form.

Parameters:
context - The context
Returns:
The value