CUDA shared memory -


i need know cuda shared memory. let's assign 50 blocks 10 threads per block in g80 card. each sm processor of g80 can handle 8 blocks simultaneously. assume that, after doing calculations, shared memory occupied.

what values in shared memory when next 8 new blocks arrive? previous values reside there? or previous values copied global memory , shared memory refreshed next 8 blocks?

it states type qualifiers:

  1. variables in registers thread, stays in kernel
  2. variables in global memory thread, stays in kernel
  3. __device__ __shared__ type variable in shared memory block, stays in kernel
  4. __device__ type variable in global memory grid, stays until application exits
  5. __device__ __constant__ type variable grid, stays until application exits

thus reference, answer question memory should refreshed next 8 blocks if reside in shared memory of device.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -