Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Neither. For such cases, you should run the two kernels in parallel in two different queues. In this case, both calls will run in parallel, with the write side automatically stalling when the buffer is full, and the read side automatically stalling if the buffer is empty. This code example will never deadlock regardless of which kernels is invoked sooner or how much data is passed. --- Quote End --- Thank you for the clear explanation on the channel. So, if the write side automatically stalling when the buffer is full, whether any memory manager such as ping pong buffer will help this?? And how to know how much data does the buffer can hold ?