title: Does OpenCL support array initializers, including default initialization with 0?
body: <p>Inside my kernel, I need an array of accumulators.</p>
  
  <pre><code>__kernel myKernel(...)
  {
      float accum[SIZE] = {};
  
      for(i=0; i&lt;ITER; ++i) {
         accum[...] += ...
      }
  
      ...
  }
  </code></pre>
  
  <p>In C, the <code>= {}</code> would initialize the array for me to be filled with 0, but I'm not sure if that's the case in OpenCL? Do I need something like the following, or is it a waste of cycles?</p>
  
  <pre><code>float accum[SIZE];
  for(int i=0; i&lt;SIZE; ++i) accum[i] = 0;
  </code></pre>