Class ClearCLCompiledProgram

  • All Implemented Interfaces:
    AutoCloseable, net.haesleinhuepf.clij.coremem.rgc.Cleanable

    public class ClearCLCompiledProgram
    extends ClearCLBase
    implements net.haesleinhuepf.clij.coremem.rgc.Cleanable
    ClearCLCompiledProgram is an internal abstraction for compiled programs.

    Note: This object did not exist in the early versions of ClearCL. This was introduced to fix the RGC bug that caused ressource leakage. This object better matches the lifecycle of the compiled OpenCL program and thus is better suited for properly supporting ressource cleanup at GC time.

    Author:
    royer
    • Method Detail

      • getDevice

        public ClearCLDevice getDevice()
        Returns the device for this program.
        Returns:
        device
      • getContext

        public ClearCLContext getContext()
        Returns the context for this program.
        Returns:
        context
      • getBuildStatus

        public BuildStatus getBuildStatus()
        Returns last build status for this program.
        Returns:
        last build status
      • getBuildLog

        public String getBuildLog()
        Returns last build logs for this program.
        Returns:
        build logs
      • getKernel

        public ClearCLKernel getKernel​(String pKernelName)
        Returns the kernel of a given name. If the kernel is not yet created, it is then created on-demand. Note: this will not recreate a kernel that already exists.
        Parameters:
        pKernelName - kernel name
        Returns:
        kernel
      • createKernel

        public ClearCLKernel createKernel​(String pKernelName)
        Creates kernel of given name from this program.
        Parameters:
        pKernelName - kernel name (function name)
        Returns:
        kernel
      • getCleaner

        public net.haesleinhuepf.clij.coremem.rgc.Cleaner getCleaner()
        Specified by:
        getCleaner in interface net.haesleinhuepf.clij.coremem.rgc.Cleanable