title: Using __constant qualifer in OpenCL kernels
body: <p>I am having trouble using the <em>__constant</em> qualifier in my OpenCL kernels. My platform is Snow Leopard. </p>
  
  <p>I have tried initializing a CL read-only memory object on the GPU, copying my constant array from host into it. Then I set the kernel argument just as with <em>__global</em> memory arguments, but this does not work as it should but I see no error or warnings. I have also tried using the data directly in the clSetKernelArg function as with <em>float</em> and <em>int</em> types, it works neither.</p>
  
  <p>Do I make any mistakes or is there something wrong with Apple's implementation? I would like to see any working examples how this is done, both OpenCL (gpu) and host code.</p>