Module gpuFlux

Class JOCLContext

java.lang.Object
de.grogra.gpuflux.jocl.JOCLContext

public class JOCLContext extends Object
  • Field Details

  • Constructor Details

    • JOCLContext

      public JOCLContext(org.jocl.cl_context context, AbstractList<org.jocl.cl_device_id> device_ids)
  • Method Details

    • finalize

      public void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getDevices

      public static org.jocl.cl_device_id[] getDevices(org.jocl.cl_context context)
    • getDevices

      public AbstractList<JOCLDevice> getDevices()
    • getIdentifier

      public String getIdentifier()
    • getLog

      public String getLog()
    • getProgram

      public JOCLProgram getProgram(String key)
    • loadProgram

      public JOCLProgram loadProgram(String key, JOCLSource source, String options) throws IOException
      Throws:
      IOException
    • getCachedProgramKey

      public String getCachedProgramKey(org.jocl.cl_device_id program_device, String programKey)
    • getCachedProgramPath

      public String getCachedProgramPath(String cacheKey)
    • loadProgramFromDisk

      public JOCLProgram loadProgramFromDisk(String key, String options) throws IOException
      Throws:
      IOException
    • cacheBinariesOnDisk

      public void cacheBinariesOnDisk(JOCLProgram program)
    • createBuffer

      public JOCLBuffer createBuffer(int size, long flags)
    • createBufferFromByteArray

      public JOCLBuffer createBufferFromByteArray(ByteArray byteArray, long flags)
    • hasDevices

      public boolean hasDevices()
    • getClContext

      public org.jocl.cl_context getClContext()
    • hasLittleEndian

      public boolean hasLittleEndian()
    • hasBigEndian

      public boolean hasBigEndian()
    • getExtensions

      public String getExtensions()
    • getDeviceNames

      public String getDeviceNames()