Forum Discussion
CLiu18
New Contributor
8 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 ...
CLiu18
New Contributor
8 years agoThanks for the reply. Yes, I am trying to make local memory in the kernel be consistent between different invocations, because this is the normal behavior in hardware. This is why I want to create a static array in the kernel.
Anyway, seems there is no simple way to keep the design code the same with the simulation code in this case.