Forum Discussion
JJaco16
New Contributor
5 years agoopencl for intel fpga Local memories merging on compilation
Hi,
I'm trying to implement a piece of code on an arria10 soc development board using openCL. The kernel code has declarations of two local memories as follows
local float __attribute__((memory,...
- 5 years ago
Hi,
Following the problem about "conflicting memory attributes", you need to set your bankwidth based on your array size. Refer to section 8.4.1 here: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl-best-practices-guide.pdf#page=157
Regards,
Nurina
Nurina
Regular Contributor
5 years agoHi,
There are a few ways for you to make sure the memory does not merge. This video lecture on Memory Optimization for OpenCL contains a few suggestions: https://www.youtube.com/watch?v=1zGpN28mXN4&t=1079s
You may find these documents to be useful:
- https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl-best-practices-guide.pdf
- https://www.intel.com/content/www/us/en/programmable/documentation/mwh1391807965224.html
Regards,
Nurina