Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Ah, I put the wrong code. Suppose, clEnqueueTask(command, task1, 0, NULL, &eventtask1); clEnqueueTask(command, task2, 0, NULL, &eventtask2); clEnqueueTask(command, task3, 0, NULL, &eventtask3); Say, Task 1 load 1 Million floats from global memory and channel pass it to task 2. Task 2 then perform summation and channel it to Task 3 Task 3 then write back to Global memory. --- Quote End --- If you are using channels between the kernels, you do not need events, and probably should not use them, since the channels have synchronization built-in, and will stall the reader kernel when the channel is empty.