diff options
author | Michael Bien <[email protected]> | 2011-09-17 05:56:16 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-09-17 05:56:16 +0200 |
commit | 58eca7ee6b1743f471576ff77c6508dd2a886595 (patch) | |
tree | 8977c90f835fec87007325185e251f2e69583661 /test/com/jogamp/opencl/HighLevelBindingTest.java | |
parent | 1247f00729e168d1cfb1991ed43f9d64bd9227bd (diff) |
Reduction supports now cl.util.concurrent package.
toString() and other minor changes
moved roundUp to CLUtil.
Diffstat (limited to 'test/com/jogamp/opencl/HighLevelBindingTest.java')
-rw-r--r-- | test/com/jogamp/opencl/HighLevelBindingTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java index 449ccd7b..db1a9333 100644 --- a/test/com/jogamp/opencl/HighLevelBindingTest.java +++ b/test/com/jogamp/opencl/HighLevelBindingTest.java @@ -58,6 +58,7 @@ import static com.jogamp.opencl.util.CLPlatformFilters.*; import static com.jogamp.opencl.CLVersion.*; import static com.jogamp.opencl.CLDevice.Type.*; import static com.jogamp.common.nio.Buffers.*; +import static com.jogamp.opencl.util.CLUtil.*; /** * Test testing the high level bindings. @@ -376,7 +377,7 @@ public class HighLevelBindingTest { int elementCount = 11444777; // Length of float arrays to process (odd # for illustration) int localWorkSize = device.getMaxWorkItemSizes()[0]; // set and log Global and Local work size dimensions - int globalWorkSize = roundUp(localWorkSize, elementCount); // rounded up to the nearest multiple of the LocalWorkSize + int globalWorkSize = roundUp(elementCount, localWorkSize); // rounded up to the nearest multiple of the LocalWorkSize out.println("allocateing buffers of size: "+globalWorkSize); |