Forum Discussion
Altera_Forum
Honored Contributor
8 years agowriting and reading the same pipe in one kernel
Hi I want to write and read the same pipe in one kernel like this: channel float c0 __attribute__((depth(2))); __kernel void testkernel() { for(int i = 0; i < n; i ++){ page_ra...
Altera_Forum
Honored Contributor
8 years agoWell, you are clearly writing to the same channel twice, once in your first kernel and the second time in your second kernel. This is not allowed since each channel works as a FIFO with one read point and one write point. However, I think the newer versions of the compiler (v17 or v17.1) allow multiple channel call sites but I haven't tried it myself.