title: Passing data from global memory to local memory in OpenCL kernel
body: <p>Let's say I have the following kernel:</p>
  
  <pre><code>__kernel void classify_data_points( __global float* data,
                                      __local float* datasegment)
  {
      int gid0 = get_global_id(0);
      int lid = get_local_id(0);
      dataSegment[lid] = data[gid];
  }
  </code></pre>
  
  <p>As it is seen, I want to take data from global memory into local memory. Is the size of local memory important to do this action at one time? I mean, dataSegment array size is 64bytes. Then, by this line 'dataSegment[lid] = data[gid]', can I assume whole 64bytes memory space is filled by data taken from global memory?(There is enough data in global memory) Or for 512 bytes long local memory, could we say same thing?</p>