Using both dynamically-allocated and statically-allocated shared memory
问题 Suppose I have two __device__ CUDA function, each having the following local variable: __shared__ int a[123]; and another function (say it's my kernel, i.e. a __global__ function), with: extern __shared__ int b[]; Is this explicitly allowed/forbidden by nVIDIA? (I don't see it in the programming guide section B.2.3 on __shared__ ) Do the sizes all count together together towards the shared memory limit, or is it the maximum possibly in use at a single time? Or some other rule? This can be