Now that we have understood how to use scalars and vectors in OpenCL, it's time to examine the OpenCL's defined four address spaces:
__private in which vectors and scalars can exist in. These spaces are mapped to the memory units and hence, limited by the actual resource on the device and define how work items can access memory.
Following is a conceptual diagram of the various memory domains:
The Global Memory and
Constant Memory found in the lower-half of the preceding diagram corresponds to the
__constant domain. The Local Memory associated with each ...