diff options
author | Michael Bien <[email protected]> | 2010-01-15 16:45:29 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-15 16:45:29 +0100 |
commit | 64f212c105fd0f23e8116307b64ee4b87928823d (patch) | |
tree | 02adbfa7a3ef1a9b0c5379ae86a9fe1187b7314c /src/com/mbien/opencl/CLDevice.java | |
parent | d446e57f45811c23da651f7a5f481ddaed4c01c6 (diff) |
CLInfoAccessor uses now threadlocal direct nio buffers for all operations.
javadoc improvements.
added event based profiling functionality.
Diffstat (limited to 'src/com/mbien/opencl/CLDevice.java')
-rw-r--r-- | src/com/mbien/opencl/CLDevice.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index ed745e80..7a676fe6 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -1,5 +1,6 @@ package com.mbien.opencl; +import com.sun.gluegen.runtime.PointerBuffer; import java.nio.Buffer; import java.util.ArrayList; import java.util.Collections; @@ -324,8 +325,8 @@ public final class CLDevice { private class CLDeviceInfoAccessor extends CLInfoAccessor { @Override - protected int getInfo(int name, long valueSize, Buffer value, long[] valueSizeRet, int valueSizeRetOffset) { - return cl.clGetDeviceInfo(ID, name, valueSize, value, valueSizeRet, valueSizeRetOffset); + protected int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet) { + return cl.clGetDeviceInfo(ID, name, valueSize, value, valueSizeRet); } } |