Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
422 Discussions

Does an OpenCL channel have a maximum capacity?

hiratz
Novice
603 Views

It seems that Intel FPGA's "Programming Guide" does not say there is a maximum capacity for the channel size (FIFO buffer). It just says "__attribute__((depth(N))" can be used to define a depth channel. But in their examples, the N is quite small (say 10).

 

So can the channel still be used if I want to transfer large amount of data (e.g., a large buffer that stores a large 2D or 3D matrix) between two kernels? Using global memory (DDR) is low efficient. If the channel does have some capacity limit, is there any way to use it?

 

Thanks in advance!

0 Kudos
2 Replies
HRZ
Valued Contributor II
150 Views

Channels are implemented using register and Block RAMs on the FPGA. The maximum channel size is limited by the amount of such resources available on your FPGA. This is essentially in the order of a few Megabytes. You should not use channels for storing data; they are made for streaming data from one kernel to another.

hiratz
Novice
150 Views

I see. Thank you, HRZ!

 

It looks like that no effective communication optimizations can be used for a large problem size except the global memory.

Reply