From 6a1e60cec64e11460679f73ef3fce9e751d60821 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 5 Jul 2010 00:18:57 +0200 Subject: modifications due to API changes in JOCL. --- src/com/jogamp/opencl/demos/hellojocl/HelloJOCL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/demos/hellojocl') 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 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); -- cgit v1.2.3