Shared memory and blocks

Hi

I’m a little bit confused as to how the shared memory is organised in a kernel which uses multiple blocks. If I define a set amount of shared memory when I run the kernel (as in the execution parameters) is that the total amount of shared memory or is that the shared memory per block?

Kind regards
Danny Schofield

per block

thanks