org.jocl.utils
Class ProgramInfos

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

public class ProgramInfos
extends java.lang.Object

Utility methods for obtaining information about cl_program objects


Method Summary
static java.lang.String[] getBinaries(org.jocl.cl_program program)
          The sizes of the program binaries for each device.
static long[] getBinarySizes(org.jocl.cl_program program)
          The sizes of the program binaries for each device.
static org.jocl.cl_context getContext(org.jocl.cl_program program)
          The context of the program.
static org.jocl.cl_device_id[] getDevices(org.jocl.cl_program program)
          The devices associated with the program.
static int getNumDevices(org.jocl.cl_program program)
          The number of devices associated with the program.
static int getReferenceCount(org.jocl.cl_program program)
          The reference count.
static java.lang.String getSource(org.jocl.cl_program program)
          The program source code
 
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_program program)
The reference count. Only intended for identifying memory leaks.

Parameters:
program - The program
Returns:
The value

getContext

public static org.jocl.cl_context getContext(org.jocl.cl_program program)
The context of the program.

Parameters:
program - The program
Returns:
The value

getNumDevices

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

Parameters:
program - The program
Returns:
The value

getDevices

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

Parameters:
program - The program
Returns:
The value

getSource

public static java.lang.String getSource(org.jocl.cl_program program)
The program source code

Parameters:
program - The program
Returns:
The value

getBinarySizes

public static long[] getBinarySizes(org.jocl.cl_program program)
The sizes of the program binaries for each device.

Parameters:
program - The program
Returns:
The value

getBinaries

public static java.lang.String[] getBinaries(org.jocl.cl_program program)
The sizes of the program binaries for each device.

Parameters:
program - The program
Returns:
The value