de.grogra.gpuflux.jocl
Class JOCLContext
java.lang.Object
de.grogra.gpuflux.jocl.JOCLContext
public class JOCLContext
- extends java.lang.Object
Constructor Summary |
JOCLContext(org.jocl.cl_context context,
java.util.AbstractList<org.jocl.cl_device_id> device_ids)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KERNEL_VERSION
public final int KERNEL_VERSION
- See Also:
- Constant Field Values
logResourceManagement
public static final boolean logResourceManagement
- See Also:
- Constant Field Values
JOCLContext
public JOCLContext(org.jocl.cl_context context,
java.util.AbstractList<org.jocl.cl_device_id> device_ids)
cacheBinariesOnDisk
public void cacheBinariesOnDisk(JOCLProgram program)
createBuffer
public JOCLBuffer createBuffer(int size,
long flags)
createBufferFromByteArray
public JOCLBuffer createBufferFromByteArray(ByteArray byteArray,
long flags)
finalize
public void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
getCachedProgramKey
public java.lang.String getCachedProgramKey(org.jocl.cl_device_id program_device,
java.lang.String programKey)
getCachedProgramPath
public java.lang.String getCachedProgramPath(java.lang.String cacheKey)
getClContext
public org.jocl.cl_context getClContext()
getDeviceNames
public java.lang.String getDeviceNames()
getDevices
public java.util.AbstractList<JOCLDevice> getDevices()
getDevices
public static org.jocl.cl_device_id[] getDevices(org.jocl.cl_context context)
getExtensions
public java.lang.String getExtensions()
getIdentifier
public java.lang.String getIdentifier()
getLog
public java.lang.String getLog()
getProgram
public JOCLProgram getProgram(java.lang.String key)
hasBigEndian
public boolean hasBigEndian()
hasDevices
public boolean hasDevices()
hasLittleEndian
public boolean hasLittleEndian()
loadProgram
public JOCLProgram loadProgram(java.lang.String key,
JOCLSource source,
java.lang.String options)
throws java.io.IOException
- Throws:
java.io.IOException
loadProgramFromDisk
public JOCLProgram loadProgramFromDisk(java.lang.String key,
java.lang.String options)
throws java.io.IOException
- Throws:
java.io.IOException