title: dynamic allocation of arrays in shared memory with different lengths
body: <p>I have to allocate 2 arrays in shared memory at run time with different lengths like this:</p>
  
  <pre><code>__global__ kernel()
  {
  __shared__ int A[blockDim.x*6]; 
  __shared__ int B[8][blockDim.x*3];
  }
  </code></pre>
  
  <p>How can I ensure that while launching this kernel like <code>kernel &lt;&lt;&lt;b,t,s&gt;&gt;&gt;</code> both will take the different lengths?</p>