diff options
author | Michael Bien <[email protected]> | 2010-03-08 16:23:28 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-08 16:23:28 +0100 |
commit | 5ad19147a76f80635dcae18693929edbf1da2cbf (patch) | |
tree | 929896eab7d454edcb2267d9287d619600868250 /test/com/mbien/opencl/LowLevelBindingTest.java | |
parent | c77d94f00de586f3ffa54312dd752650a6ff4d7b (diff) |
moved utilities to util package.
several smaller improvements and doc fixes.
Diffstat (limited to 'test/com/mbien/opencl/LowLevelBindingTest.java')
-rw-r--r-- | test/com/mbien/opencl/LowLevelBindingTest.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/com/mbien/opencl/LowLevelBindingTest.java b/test/com/mbien/opencl/LowLevelBindingTest.java index 78ca3555..935ba73c 100644 --- a/test/com/mbien/opencl/LowLevelBindingTest.java +++ b/test/com/mbien/opencl/LowLevelBindingTest.java @@ -12,7 +12,7 @@ import org.junit.Test; import static org.junit.Assert.*; import static java.lang.System.*; import static com.mbien.opencl.TestUtils.*; -import static com.mbien.opencl.CLUtils.*; +import static com.mbien.opencl.util.CLUtil.*; import static com.sun.gluegen.runtime.BufferFactory.*; /** @@ -52,13 +52,16 @@ public class LowLevelBindingTest { @Test public void contextlessTest() { - System.out.println("low level tests temporary disabled"); -/* + out.println("low level tests temporary disabled"); out.println(" - - - lowLevelTest; contextless binding - - - "); - int ret = CL.CL_SUCCESS; - CL cl = CLPlatform.getLowLevelBinding(); + CL cl = CLPlatform.getLowLevelCLInterface(); + + System.out.println(((CLImpl)cl).clGetExtensionFunctionAddress("clCreateFromGLBuffer").getLong()); + System.out.println(((CLImpl)cl).clGetExtensionFunctionAddress("clEnqueueAcquireGLObjects").getLong()); +/* + int ret = CL.CL_SUCCESS; int[] intBuffer = new int[1]; // find all available OpenCL platforms |