Altera_Forum
Honored Contributor
12 years agoHeterogeneous Memory Banks in AOCL 13.1
As stated both in the Altera SDK for OpenCL Programming Guide, and also in the Optimization Guide, explicit definition of the global memory type where we want a specific buffer to reside in is a beta feature of the AOCL 13.1.
Following the guides, I tried both defining the preprocessor macros... # define QDR __global __attribute__((buffer_location("QDR"))) __kernel void foo (QDR uint * data, ... ... and also using the __attribute__ in the argument itself, but to no avail. The parser generates the following error: error: string passed to buffer location attribute is not a valid memory location. The board specification defines available memories as: __global __attribute__((buffer_location("QDR"))) float2 *restrict foo) --------------------------------------^ 1 error generated. Error: OpenCL parser FAILED. Running the aocl version command confirms that I'm using version 13.1.162 of the compiler, so I ask, am I doing anything wrong? Did I miss a step?