title: How to use 3-D array in OpenCL kernel?
body: <p>I am new to OpenCL. I have worked with OpenCL kernel with 1-D data. But when I tried to pass a 3-D pointer, it fails to build the kernel. To be specific I'm getting <strong>CL_BUILD_PROGRAM_FAILURE</strong>. Here's the pseudo code for the kernel I'm trying to build -</p>
  
  <pre><code>__kernel void 3D_Test(__global float ***array)
  {
  
  x = get_global_id(0);
  y = get_global_id(1);
  z = get_global_id(2);
  
  array[x][y][z] = 10.0;
  
  }
  </code></pre>
  
  <p>Could anyone give me an idea on what's wrong with the code? Thanks in advance!</p>