Module notzed.zcl
Package au.notzed.zcl

Class CLProgram

java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLProgram

public class CLProgram
extends CLObject
Interface for cl_program.
  • Method Details

    • create

      public static CLProgram create​(jdk.incubator.foreign.MemoryAddress p)
    • buildProgram

      public void buildProgram​(CLDevice[] devices, java.lang.String options, CLNotify<CLProgram> notify) throws CLException
      Call clBuildProgram.
      Parameters:
      devices - Target devices.
      options - Build options.
      notify - Notification callback.
      Throws:
      CLException
    • buildProgram

      public void buildProgram​(CLDevice[] devices, java.lang.String options) throws CLException
      Throws:
      CLException
    • compileProgram

      public void compileProgram​(CLDevice[] devices, java.lang.String options, CLProgram[] headers, java.lang.String[] header_names, CLNotify<CLProgram> notify) throws CLException, java.lang.UnsupportedOperationException
      Call clCompileProgram.
      Parameters:
      devices -
      options -
      headers - List of programs defining headers.
      header_names - List of names from headers. They must contain the same number of elements.
      notify -
      Throws:
      CLException
      java.lang.UnsupportedOperationException
      Since:
      OpenCL 1.2
    • createKernel

      public CLKernel createKernel​(java.lang.String name) throws CLException
      Call clCreateKernel.
      Parameters:
      name - Name of kernel function.
      Returns:
      A newly created kernel. Release should be called when it is no longer needed.
      Throws:
      CLRuntimeException
      CLException
    • createKernelsInProgram

      public CLKernel[] createKernelsInProgram() throws CLRuntimeException
      Call clCreateKernelsInProgram.
      Returns:
      kernels created
      Throws:
      CLRuntimeException
    • getContext

      public CLContext getContext()
    • getNumDevices

      public int getNumDevices()
    • getDevices

      public CLDevice[] getDevices()
    • getSource

      public java.lang.String getSource()
    • getBinaries

      public byte[][] getBinaries()
    • getNumKernels

      public int getNumKernels()
    • getKernelNames

      public java.lang.String getKernelNames()
    • getBuildStatus

      public int getBuildStatus​(CLDevice device)
    • getBuildOptions

      public java.lang.String getBuildOptions​(CLDevice device)
    • getBuildLog

      public java.lang.String getBuildLog​(CLDevice device)
    • getBinaryType

      public int getBinaryType​(CLDevice device)