Forum Discussion
2 Replies
- Altera_Forum
Honored Contributor
Hi,
I found some information about channel depth in the programming guide. http://www.altera.com/literature/hb/opencl-sdk/aocl_programming_guide.pdf Implementing Buffered Channels Using the depth Channels Attribute You may have buffered or unbuffered channels in your kernel program. If there are imbalances in channel read and write operations, create buffered channels to prevent kernel stalls by including the depth attribute in your channel declaration. Buffered channels decouple the operation of concurrent work-items executing in different kernels Here is an example: channel int c __attribute__((depth(10))); - Altera_Forum
Honored Contributor
Hi,
I found this information from: "Implementing Buffered Channels Using the depth Channels Attribute" in http://www.altera.com/literature/hb/opencl-sdk/aocl_programming_guide.pdf All that is needed is the depth attribute. Here is an example: channel int c __attribute__((depth(10)));