aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/mbien/opencl/HighLevelBindingTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-16 01:07:55 +0100
committerMichael Bien <[email protected]>2010-03-16 01:07:55 +0100
commit81b94f83cb76128c481d21134c3d462590db23d0 (patch)
tree3c6665bc97d07a06a780bfc655bda73d37657c1e /test/com/mbien/opencl/HighLevelBindingTest.java
parent68b70f68f42a0fce94aea9c47981edc8de5dd1d1 (diff)
added Capabilities enum and getter to CLDevice.
updated tests.
Diffstat (limited to 'test/com/mbien/opencl/HighLevelBindingTest.java')
-rw-r--r--test/com/mbien/opencl/HighLevelBindingTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/com/mbien/opencl/HighLevelBindingTest.java b/test/com/mbien/opencl/HighLevelBindingTest.java
index a6520851..fd201bad 100644
--- a/test/com/mbien/opencl/HighLevelBindingTest.java
+++ b/test/com/mbien/opencl/HighLevelBindingTest.java
@@ -10,6 +10,7 @@ import com.mbien.opencl.CLDevice.FPConfig;
import com.mbien.opencl.CLDevice.GlobalMemCacheType;
import com.mbien.opencl.CLDevice.LocalMemType;
import com.mbien.opencl.CLDevice.Type;
+import com.mbien.opencl.CLDevice.Capabilities;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Arrays;
@@ -60,6 +61,9 @@ public class HighLevelBindingTest {
for (Type e : Type.values()) {
assertEquals(e, Type.valueOf(e.TYPE));
}
+ for (Capabilities e : Capabilities.values()) {
+ assertEquals(e, Capabilities.valueOf(e.CAPS));
+ }
// CLMemory enums
for (Mem e : Mem.values()) {
@@ -145,10 +149,11 @@ public class HighLevelBindingTest {
out.println(" number of address bits: "+device.getAddressBits());
out.println(" half FP available: "+device.isHalfFPAvailable());
out.println(" double FP available: "+device.isDoubleFPAvailable());
- out.println(" little endian: "+device.isLittleEndianAvailable());
+ out.println(" little endian: "+device.isLittleEndian());
out.println(" half FP config: "+device.getHalfFPConfig());
out.println(" single FP config: "+device.getSingleFPConfig());
out.println(" double FP config: "+device.getDoubleFPConfig());
+ out.println(" execution capabilities: "+device.getExecutionCapabilities());
out.println(" extensions: "+device.getExtensions());
}
}