From b0102cab5062eb8cb06329bff457d4dd5b9d0099 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 26 Jan 2010 00:40:22 +0100 Subject: implemented GL interop context creation on windows and mac. added more factory methods to CLGLContext. --- test/com/mbien/opencl/CLConcurrencyTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/com/mbien/opencl/CLConcurrencyTest.java') 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) -- cgit v1.2.3