Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

specify depth of channel

Altera_Forum
Honored Contributor II
1,204 Views

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". 

 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
466 Views

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)));
0 Kudos
Altera_Forum
Honored Contributor II
466 Views

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)));
0 Kudos
Reply