Forum Discussion
Altera_Forum
Honored Contributor
12 years agoIs there a particular reason you are releasing everything (kernel, program, queue, context) at every iteration, rather than just the buffers?
Would it be possible to have some kernels interspersed between your "real" kernels which re-initialized the data? In this way, you could reuse the same buffers but avoid having to copy them back and forth, and avoid having to allocate and destroy them at each iteration.