threads bloc

Hello, how can i devide a threads bloc into other sub blocs (exemple a threads bloc of 32 will be divided into 4 sub bloc of 8 ).
thank you all.

You could make the blockDim two dimensional, e.g. 8x4 to achieve what you want.

Just be aware that scheduling will always be warp based (unless you’re on Volta GPUs), and threads will be assigned to warps in consecutive groups of 32 threads.


Thank you Christian for your replay can you give me a written example about what you saied and thank you in advance. Have a nice day.