As avidday said - no dynamic arrays. You can do dynamic shared memory allocation at kernel invocation. Failing that, just pass in a pointer to a global memory space the size you want.
As avidday said - no dynamic arrays. You can do dynamic shared memory allocation at kernel invocation. Failing that, just pass in a pointer to a global memory space the maximum size you want.