Forum Discussion
Altera_Forum
Honored Contributor
8 years agocache data on chip ram
Hi, Say i have a large dataset that i wanted to cache it on chip ram and the following code is what i wrote.
__kernel(global *input, uint g, uint data_length){
__local memory data_buffe...
Altera_Forum
Honored Contributor
8 years agoIf you post your actual code, or a code snippet that compiles so that we can see the actual dependency report, it would be a lot easier to judge. However, based on your pseudo-code, I can tell you have a read after write dependency on the "data_buffer". Access latency to Block RAM-based on-chip buffers is not single cycle and hence, such dependencies are unavoidable unless you make your on-chip buffer small enough so that it can be implemented using registers. Using# pragma ivdep will be incorrect in your case since the dependency the compiler detects is a real dependency.