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

Problem with barrier(CLK_GLOBAL_MEM_FENCE)

Altera_Forum
Honored Contributor II
1,216 Views

hi , 

 

When I added the barrier(CLK_GLOBAL_MEM_FENCE) in the kernel code , I always got the message "quartus compilation failed"  

I searched some threads and knew the if-else will result in this warning message (....at most two workgroup is allowed) 

But in my kernel program , there are lots of if-else to decide the path like as follow: 

"""""""""" 

func1 

func2 

funcA 

funcB 

funcC{ 

if 

func1 

else 

func2 

funcD{ 

if 

funcA 

else 

funcB 

 

funcE{ 

if 

funcC 

else 

funcD 

__kernel void func() 

funcE; 

barrier(CLK_GLOBAL_MEM_FENCE) 

}  

"""""""""" 

Could anyone tell us how to utilization the code if there are lots of if-else to decide the PATH? 

BinarySearch might encounter the same situation (It's just my guess). 

 

How to solve this situation ? Maybe we can use pipe or other programming skills to fit the design in DE5 

 

Thanks : )
0 Kudos
0 Replies
Reply