- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any way to set the depth of a channel? I see nothing in the documentation. I am getting compiler warnings about "Channel depths cannot be optimized".
ThanksLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)));- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)));
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page