Thanks for replying !!!
Will I be ok if each block does not exceed 48k, but the whole SM exceed 48k ?
By the way, did the number of active blocks is determined by the cuda cudaOccupancyMaxPotentialBlockSize method ? This method outputs both recommended block size and grid sizes, and only the output grid size is used as active number of blocks with the block size not used. Is that the way it works ?