Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- "#pragma ivdep" is for load/store dependencies on "global" variables, not local ones. The compiler is very accurate in detecting dependencies on local variables (I haven't seen any false-positives). You seem to be using indirect addressing on your local variable, that is the reason for your load/store dependency. --- Quote End --- Thanks for your reply! I am certain that addresses addr1 and addr2 never overlap, and the opencl version is 16.0. But in the Intel FPGA for OpenCL Best Practices Guide v17.0, I see "The array specified by the ivdep pragma must be a local or private memory array, or a pointer variable that points to a global, local, or private memory storage. If the specified array is a pointer, the ivdep pragma also applies to all arrays that may alias with specified pointer." So, I think "Pragma ivdep" can work on local memory in Opencl v17.0? Is right? Thank you!