Altera_Forum
Honored Contributor
9 years agoHow to partition buffers in global memory manually?
Manual Partitioning of Global Memory section of the Intel[SUP]®[/SUP] FPGA SDK for OpenCL™ Programming Guide tells :
"however, you have the option to control the memory bandwidth across a group of buffers by partitioning your data manually." But the Specifying Buffer Location in Global Memory only shows how to allocate buffer to specific global memory type. to instruct the host to allocate a buffer to a specific global memory type, insert the buffer_location("<memory_type>") attribute, where <memory_type> is the name of the global memory type provided by your board vendor. for example: __kernel void foo(__global __attribute__((buffer_location("ddr"))) int *x, __global __attribute__((buffer_location("qdr"))) int *y) [h=1] Is there any way to specify buffer location in the same global memory type just like DDR? [/h] I am not sure how to distribute different buffer to different bank, is there any sample? Many thanks!