diff options
author | Michael Bien <[email protected]> | 2010-07-05 00:18:57 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-07-05 00:18:57 +0200 |
commit | 6a1e60cec64e11460679f73ef3fce9e751d60821 (patch) | |
tree | 9bdaaa46b6247046bcbab80c20dee18bec82e9b4 /src/com/jogamp | |
parent | 172622a969eb5bf6b2591293988ff4cddbd54fe3 (diff) |
modifications due to API changes in JOCL.
Diffstat (limited to 'src/com/jogamp')
-rw-r--r-- | src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java | 2 | ||||
-rw-r--r-- | src/com/jogamp/opencl/demos/radixsort/RadixSortDemo.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java b/src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java index 31fabab..1daf890 100644 --- a/src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java +++ b/src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java @@ -37,7 +37,7 @@ public class HelloJOCL { CLBuffer<FloatBuffer> clBufferC = context.createFloatBuffer(globalWorkSize, WRITE_ONLY); out.println("used device memory: " - + (clBufferA.getSize()+clBufferB.getSize()+clBufferC.getSize())/1000000 +"MB"); + + (clBufferA.getCLSize()+clBufferB.getCLSize()+clBufferC.getCLSize())/1000000 +"MB"); // fill read buffers with random numbers (just to have test data; seed is fixed -> results will not change between runs). fillBuffer(clBufferA.getBuffer(), 12345); diff --git a/src/com/jogamp/opencl/demos/radixsort/RadixSortDemo.java b/src/com/jogamp/opencl/demos/radixsort/RadixSortDemo.java index 2ce429a..8650be2 100644 --- a/src/com/jogamp/opencl/demos/radixsort/RadixSortDemo.java +++ b/src/com/jogamp/opencl/demos/radixsort/RadixSortDemo.java @@ -62,7 +62,7 @@ public class RadixSortDemo { CLBuffer<IntBuffer> array = context.createIntBuffer(numElements, READ_WRITE); out.print("array size: " + array.getCLSize()/1000000.0f+"MB; "); - out.println("elements: " + array.getCapacity()/1000+"K"); + out.println("elements: " + array.getCLCapacity()/1000+"K"); fillBuffer(array, maxValue); |