Re: Exception while executing a 3D kernel
Posted by suleman on Apr 21, 2011; 3:49pm
URL: https://forum.jogamp.org/Exception-while-executing-a-3D-kernel-tp2847306p2847490.html
Hi,
I changed the code assaid by you, but now the JVM crashes? Is there a bug in the implementation (by me or jocl library) or do i have a older version?
Currently i am using (08-03-2011) version
PointerBuffer offSets = PointerBuffer.allocateDirect(1);
offSets.put(globalWorkOffsets,0,1);
offSets.rewind();
PointerBuffer globalSizes = PointerBuffer.allocateDirect(1);
globalSizes.put(globalWorkSizes, 0, 1);
globalSizes.rewind();
PointerBuffer localSizes = PointerBuffer.allocateDirect(1);
localSizes.put(localWorkSizes, 0, 1);
localSizes.rewind();
//Execute the 3D kernel
device.getCommandQueue().putNDRangeKernel(clkernel, 3, offSets, globalSizes, localSizes);