Login  Register

Dynamicaly allocating local memory

Posted by Miha on Jan 13, 2014; 7:42pm
URL: https://forum.jogamp.org/Dynamicaly-allocating-local-memory-tp4031194.html

Hello,

how can I dynamicaly allocate local memory from java code prior to calling kernel?

So I am looking for JOCL equivalent of:

clSetKernelArg(kernel, 3, array_size*sizeof(int), NULL);

// CL kernel
__kernel void test(__global int **values, __global int *result,  const int array_size, __local int * cache)