org.jocl.utils
Class KernelInfos

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

public class KernelInfos
extends java.lang.Object

Utility methods for obtaining information about cl_kernel objects


Method Summary
static org.jocl.cl_context getContext(org.jocl.cl_kernel kernel)
          The context that this kernel belongs to
static java.lang.String getFunctionName(org.jocl.cl_kernel kernel)
          The kernel function name.
static int getNumArgs(org.jocl.cl_kernel kernel)
          The number of arguments
static org.jocl.cl_program getProgram(org.jocl.cl_kernel kernel)
          The program that this kernel belongs to
static int getReferenceCount(org.jocl.cl_kernel kernel)
          The reference count - only provided for identifying memory leaks.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFunctionName

public static java.lang.String getFunctionName(org.jocl.cl_kernel kernel)
The kernel function name.

Parameters:
kernel - The kernel
Returns:
The value

getReferenceCount

public static int getReferenceCount(org.jocl.cl_kernel kernel)
The reference count - only provided for identifying memory leaks.

Parameters:
kernel - The kernel
Returns:
The value

getNumArgs

public static int getNumArgs(org.jocl.cl_kernel kernel)
The number of arguments

Parameters:
kernel - The kernel
Returns:
The value

getContext

public static org.jocl.cl_context getContext(org.jocl.cl_kernel kernel)
The context that this kernel belongs to

Parameters:
kernel - The kernel
Returns:
The value

getProgram

public static org.jocl.cl_program getProgram(org.jocl.cl_kernel kernel)
The program that this kernel belongs to

Parameters:
kernel - The kernel
Returns:
The value