https://forum.jogamp.org/Exception-while-executing-a-3D-kernel-tp2847306p2847351.html
>
> Hi,
>
> While using the clEnqueueNDRangeKernel (with 3 dimensional kernel) i got
> following exception,
> I have created a PointerBuffer and passed an array in this buffer, then the
> pointer buffer is passed to the "putNDRangeKernel" call. What mistake am i
> doing here??
>
> Code sample:
>
> PointerBuffer offSets = PointerBuffer.allocate(1);
> offSets.put(globalWorkOffsets, 0, 1);
> ....
> device.getCommandQueue().putNDRangeKernel(clkernel,
> 3, offSets, globalSizes, localSizes);
>
>
>
> com.jogamp.opencl.CLException: Argument "global_work_offset" was not a
> direct buffer
> at
> com.jogamp.opencl.impl.CLAbstractImpl.clEnqueueNDRangeKernel(CLAbstractImpl.java:707)
> at
> com.jogamp.opencl.CLCommandQueue.putNDRangeKernel(CLCommandQueue.java:1544)
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
>
http://forum.jogamp.org/Exception-while-executing-a-3D-kernel-tp2847306p2847306.html> To start a new topic under jogamp, email
[hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/