do you have a self contained testcase? I would like to take a look
On 10/01/2010 06:15 AM, harishd [via jogamp] wrote:
I'm trying to get the hang of jocl, and I seem to be unable to
find a way to use local variables in the kernel.
This is done by the cl call clSetKernelArg(kernel, index, size,
NULL) in c, but I'm unable to find the corresponding api call in
jocl to do this.
when I try it by calling kernel.setArg(index, clBuffer), where
clBuffer has the given size, but not initialized, I get the
Exception in thread "main"
setting arg 6 to value java.nio.DirectByteBuffer[pos=0 lim=24
cap=24] of size 4 of CLKernel [id: 160042672 name: init]