Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHi there,
You are not using clSetKernelArg correctly as the proper way to set a pointer to local memory is: status = clSetKernelArg(kernel, argi++, sizeof(<type>)*<size_of_array>, null);
so for example, if you want to set an array of chars of size 256, you would have to write:
status = clsetkernelarg(kernel, argi++, sizeof(char)*256, NULL); That's all. Good luck!