summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/impl/CLTLInfoAccessor.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-21 08:37:26 +0100
committerSven Gothel <[email protected]>2014-02-21 08:37:26 +0100
commitd4f04ddd3ef3b65b7c31d3504cf55489153c60c1 (patch)
treee72294205d659cb1484c72a612f72f043634a648 /src/com/jogamp/opencl/impl/CLTLInfoAccessor.java
parent84e5e16a4aaa206c39b04b980d8d63ffacb97dbb (diff)
Bug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum to CLContext - Split CLBufferTest and use alignment.
See Bug 979 for remaining issues and discussion.
Diffstat (limited to 'src/com/jogamp/opencl/impl/CLTLInfoAccessor.java')
-rw-r--r--src/com/jogamp/opencl/impl/CLTLInfoAccessor.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/impl/CLTLInfoAccessor.java b/src/com/jogamp/opencl/impl/CLTLInfoAccessor.java
index c31b22a6..28115305 100644
--- a/src/com/jogamp/opencl/impl/CLTLInfoAccessor.java
+++ b/src/com/jogamp/opencl/impl/CLTLInfoAccessor.java
@@ -41,7 +41,7 @@ import static com.jogamp.opencl.CLException.*;
/**
* Internal utility for common OpenCL clGetFooInfo calls.
* Threadsafe, threadlocal implementation.
- * @author Michael Bien
+ * @author Michael Bien, et al.
*/
public abstract class CLTLInfoAccessor implements CLInfoAccessor {
@@ -65,6 +65,14 @@ public abstract class CLTLInfoAccessor implements CLInfoAccessor {
};
@Override
+ public final long getUInt32Long(int key) {
+ final ByteBuffer buffer = getBB(4).putInt(0, 0);
+ final int ret = getInfo(key, 4, buffer, null);
+ CLException.checkForError(ret, "error while asking for info value");
+ return Bitstream.toUInt32Long(buffer.getInt(0));
+ }
+
+ @Override
public final long getLong(int key) {
ByteBuffer buffer = getBB(8).putLong(0, 0);