Forum Discussion
Altera_Forum
Honored Contributor
8 years agoMulti kernel function local memory resource
I would like to implement CNN using OpenCL and run on FPGA. The CNN implementation will contain 4 kernel function layer1_kernel, supposed allocate 1 MB local memory layer2_kernel, supposed all...
Altera_Forum
Honored Contributor
8 years agoIf you put all the kernels in the same cl file, then all of them will be implemented as one FPGA image/bitstream and memory size will be 4 MB. However, if you put them into separate .cl files and compile them separately and load them one by one on the FPGA, the memory usage will be 1 MB, but the FPGA will need to be reconfigured each time you call a new kernel.