title: define variable size on array in local memory, using CUDA
body: <p>Is it somewhat possible to make a list, array, something in a <strong>device</strong> function with the size of the list/array beeing a parameter in the call… or a global variable that's initialized at call time?</p>
  
  <p>I would like something like one of these list to work:</p>
  
  <pre><code>unsigned int size1;
  
  __device__ void function(int size2) {
  
      int list1[size1];
      int list2[size2];
  }
  </code></pre>
  
  <p>Is it possible to do something smart to make something like this work?</p>