Login  Register

Re: Dynamicaly allocating local memory

Posted by Wade Walker on Jan 14, 2014; 2:17am
URL: https://forum.jogamp.org/Dynamicaly-allocating-local-memory-tp4031194p4031201.html

Looks like it should just be something like this:

CL cl = CLPlatform.getLowLevelCLInterface();
...
cl.clSetKernelArg(kernel, 3, bytes, null);

You can look in https://github.com/JogAmp/jocl/blob/master/test/com/jogamp/opencl/LowLevelBindingTest.java for an example of clSetKernelArg().