OpenCL implements the following disjoint address spaces:
__global, __local, __constant and __private.
__global uses the global memory
__local uses local memory
__constant uses constant memory, read-only
__private: it signals that the variable belongs to only the thread
The generic address space name for arguments to a function in a program, or local variables of a function is __private. All function arguments shall be in the __private address space.
No comments:
Post a Comment