title: creating arrays in nvidia cuda kernel
body: <p>hi I just wanted to know whether it is possible to do the following inside the nvidia cuda kernel</p>
  
  <pre><code>__global__ void compute(long *c1, long size, ...)
  {
    ...
    long d[1000];
    ...
  }
  </code></pre>
  
  <p>or the following </p>
  
  <pre><code>__global__ void compute(long *c1, long size, ...)
  {
    ...
    long d[size];
    ...
  }
  </code></pre>