CLiu18
New Contributor
7 years agoHow to declare a static array in OpenCL kernel?
In the OpenCL kernel, I need to declare a static array (buffer) such that the data in the array (buffer) retains when the kernel gets launched iteratively. This is particularly useful for iterative algorithms. However, the compiler pops compilation error when the array is set static.
An alternative way is to dump the data in the buffer to DDR and read it from DDR in next iteration. This works but the kernel changes too much when doing software simulation.
Looking forward to suggestions on this.
Regards,
Cheng Liu