- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
What is the main advantage of using pipes on Altera OpenCL SDK? I'm still trying to figure out why separating the codes in different kernels. If possible, I would like an example. Thank you :)Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The main advantage of channels (and pipes) is "ease of programming" which comes at the cost of higher area overhead and some restrictions on what you can do in your kernel (e.g. no SIMD or parallel work groups are supported in NDRange kernels that use channels). You can always do what you do with channels, without channels, but it will likely require [much] more programming effort.
For NDRange kernels it regularly makes sense to have multiple kernels with different local and global work size. For single work-item kernels, it rarely makes sense to have multiple kernels because it would just result in area waste caused by extra kernel interfaces. Though in all cases one might want to have multiple kernels and connect them with channels to reduce programming effort. Sometimes it might also make sense to mix NDRange and single work-item kernels and connect them with channels so that each kernel type is used for the part of the computation that better matches it; e.g. DDR memory performance is generally higher in NDRange kernels while loops with iteration dependencies work better in single work-item. You can find multiple examples of applications with multiple kernels and channels among Altera's examples here (https://www.altera.com/products/design-software/embedded-software-developers/opencl/developer-zone.html). Search for the word "channel" in the "Design Examples" page.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, very helpful your information again :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any pipes example
thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Is there any pipes example thanks --- Quote End --- Check Altera's design example page which I linked in my previous reply.
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