diff options
author | Michael Bien <[email protected]> | 2010-03-30 17:19:15 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-30 17:19:15 +0200 |
commit | 9ec0937d729faade497a3d2a394f76992dcdaa45 (patch) | |
tree | 5ae54ffaf676f988609e66f6a88858f468f296bf /src/com/mbien/opencl/CLDevice.java | |
parent | 8b6228d7978c515d1d8de160c45fe52b77874779 (diff) |
refactorings due to newly introduced Int64Buffer in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLDevice.java')
-rw-r--r-- | src/com/mbien/opencl/CLDevice.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index 624fd1f7..3436a726 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -1,8 +1,8 @@ package com.mbien.opencl; import com.mbien.opencl.util.CLUtil; -import com.jogamp.gluegen.runtime.CPU; -import com.jogamp.gluegen.runtime.PointerBuffer; +import com.jogamp.gluegen.runtime.Int64Buffer; +import com.jogamp.gluegen.runtime.Platform; import java.nio.Buffer; import java.nio.ByteBuffer; import java.util.ArrayList; @@ -516,7 +516,7 @@ public final class CLDevice extends CLObject { private final class CLDeviceInfoAccessor extends CLInfoAccessor { @Override - protected int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet) { + protected int getInfo(int name, long valueSize, Buffer value, Int64Buffer valueSizeRet) { return cl.clGetDeviceInfo(ID, name, valueSize, value, valueSizeRet); } @@ -528,7 +528,7 @@ public final class CLDevice extends CLObject { int[] array = new int[n]; for(int i = 0; i < array.length; i++) { - if(CPU.is32Bit()) { + if(Platform.is32Bit()) { array[i] = buffer.getInt(); }else{ array[i] = (int)buffer.getLong(); |