Altera_Forum
Honored Contributor
12 years agoChannel from many work items to single task
Hi,
I am trying to compile something that is computing something with many work items. They are spit out to a channel into a single work item. There is no way to know how many at compile time but i get this error: Channel Pairing Type Does not match Channel c0 needs one chan_read_altera and one chan_write_altera. Multiple chan_read_altera/chan_write_altera with the same channel ID may cause this problem. system_integrator: custom_ic_impl.cpp:4422: void custom_ic::System::build_channel_system(): Assertion `0' failed. There is only one of each channel read/write call in the code and i the different kernels (one in the multiple work item, the other in a single task) Any ideas? Thanks, Stephen Edit: I think i realized why. Is it that the number of of calls has to be defined to be the same? (ie static?) If so that sucks ... i obviously want to read and write N times in each kernel but can i vary N?