Forum Discussion
Altera_Forum
Honored Contributor
8 years agoDifference between RAM blocks and Memory Bits?
I recently encounter abnormal usage about RAM blocks. my code is like: # define A_PARALLEL 16# define B_PARALLEL 32 typedef struct{ float kk[A_PARALLEL]; } A_parallel; typed...
Altera_Forum
Honored Contributor
8 years agoIf you want to disable the cache on global memory LSU you need to mark the "pointer" as volatile and not the data type B_parallel, so instead of
__kernel foo(__global volatile const B_parallel *W, int count) you're looking for: __kernel foo(__global const B_parallel * volatile W, int count) Also note, that const and __constant are different.