title: Shared Memory Allocation on GPU (Static or Dynamic)
body: <p>I want to know what is the difference between statically allocated shared memory and dynamically allocated shared memory on the GPU? In my device code, I have the following line:</p>
  
  <pre><code>__shared__ int temp[THREADS_PER_BLOCK];
  </code></pre>
  
  <p>Is this static or dynamic allocation of shared memory?</p>