Description
The __local or local address space name is used to describe variables that
are allocated in local memory and shared by all work-items in a work-group.
Examples:
kernel void my_func(...)
{
local float a; // A single float allocated
// in the local address space
local float b[10]; // An array of 10 floats
// allocated in the local address space
}
|
Variables allocated in the |
Document Notes
For more information, see the OpenCL C Specification
This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.