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:
__shared__ int temp[THREADS_PER_BLOCK];
Is this static or dynamic allocation of shared memory?