diff options
author | Michael Bien <[email protected]> | 2010-01-26 00:40:22 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-26 00:40:22 +0100 |
commit | b0102cab5062eb8cb06329bff457d4dd5b9d0099 (patch) | |
tree | fdc39c89c6c55a7d41b7e4911a13c52b3a7f7d8b /test | |
parent | 22a5f55a5d0e4215eacda6dbf01b34cec47a5bf0 (diff) |
implemented GL interop context creation on windows and mac.
added more factory methods to CLGLContext.
Diffstat (limited to 'test')
-rw-r--r-- | test/com/mbien/opencl/CLConcurrencyTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/com/mbien/opencl/CLConcurrencyTest.java b/test/com/mbien/opencl/CLConcurrencyTest.java index bfa42907..9234a4c8 100644 --- a/test/com/mbien/opencl/CLConcurrencyTest.java +++ b/test/com/mbien/opencl/CLConcurrencyTest.java @@ -21,7 +21,8 @@ public class CLConcurrencyTest { out.println(" - - - event synchronisation test - - - "); - final int elements = ONE_MB/SIZEOF_INT * 5; // 5MB per buffer + final int groupSize = 256; + final int elements = roundUp(groupSize, ONE_MB/SIZEOF_INT * 5); // 5MB per buffer CLContext context = CLContext.create(); @@ -54,10 +55,10 @@ public class CLConcurrencyTest { assertEquals(0, events.size()); vectorAddKernel.setArgs(clBufferA, clBufferB, clBufferC); // C = A+B - queue.put1DRangeKernel(vectorAddKernel, 0, elements, 256, events); + queue.put1DRangeKernel(vectorAddKernel, 0, elements, groupSize, events); vectorAddKernel.setArgs(clBufferA, clBufferB, clBufferD); // D = A+B - queue.put1DRangeKernel(vectorAddKernel, 0, elements, 256, events); + queue.put1DRangeKernel(vectorAddKernel, 0, elements, groupSize, events); assertEquals(2, events.size()); queue.putWaitForEvent(events, 0, false) |