Class CLProgram

    • Method Detail

      • getCLKernel

        public CLKernel getCLKernel​(long id)
        Returns a CLKernel associated with this program.
        Parameters:
        id - the kernel id
        Returns:
        the CLKernel object
      • createKernelsInProgram

        public CLKernel[] createKernelsInProgram()
        Creates kernel objects for all kernels functions in this program.
        Returns:
        a CLKernel array
      • getInfoString

        public String getInfoString​(int param_name)
        Returns the String value of the specified parameter.
        Parameters:
        param_name - the parameter
        Returns:
        the parameter value
      • getInfoInt

        public int getInfoInt​(int param_name)
        Returns the integer value of the specified parameter.
        Parameters:
        param_name - the parameter
        Returns:
        the parameter value
      • getInfoSizeArray

        public long[] getInfoSizeArray​(int param_name)
        Returns an array of size_t values of the specified parameter.
        Parameters:
        param_name - the parameter
        Returns:
        the parameter values
      • getInfoDevices

        public CLDevice[] getInfoDevices()
        Returns an array of CLDevices associated with this program.
        Returns:
        the array of devices
      • getInfoBinaries

        public ByteBuffer getInfoBinaries​(ByteBuffer target)
        Returns the program binaries for all devices associated with program, written sequentially in the target ByteBuffer. If the target parameter is null, a new ByteBuffer will be allocated. If not, the target ByteBuffer must be big enough to hold the program binaries, as returned by CL_PROGRAM_BINARY_SIZES.
        Parameters:
        target - the target ByteBuffer array.
        Returns:
        the array of devices
      • getInfoBinaries

        public ByteBuffer[] getInfoBinaries​(ByteBuffer[] target)
        Returns the program binaries for all devices associated with program, as a ByteBuffer array. If the target parameter is null, a new ByteBuffer array will be allocated. If not, the target ByteBuffers must be big enough to hold the program binaries, as returned by CL_PROGRAM_BINARY_SIZES.
        Parameters:
        target - the target ByteBuffer array.
        Returns:
        the array of devices
      • getBuildInfoString

        public String getBuildInfoString​(CLDevice device,
                                         int param_name)
        Returns the String value of the specified parameter.
        Parameters:
        param_name - the parameter
        Returns:
        the parameter value
      • getBuildInfoInt

        public int getBuildInfoInt​(CLDevice device,
                                   int param_name)
        Returns the integer value of the specified parameter.
        Parameters:
        param_name - the parameter
        Returns:
        the parameter value
      • getParent

        public P getParent()
      • getReferenceCount

        public final int getReferenceCount()
      • isValid

        public final boolean isValid()
        Description copied from class: PointerWrapperAbstract
        Returns true if this object represents a valid pointer. The pointer might be invalid because it is NULL or because some other action has deleted the object that this pointer represents.
        Overrides:
        isValid in class PointerWrapperAbstract
        Returns:
        true if the pointer is valid