On smid


What I want is:

BlockIDx.x=0 => sm#0

BlockIDx.x=1 => sm#1

BlockIDx.x=2 => sm#2

BlockIDx.x=3 => sm#3

Assuming I have only 4 SMs in my GPU, how can I ensure this?

Thanks in advance for your reply.



This thing is device-dependent. In a lot of devices blocks simply don’t fill SMs in that order, either due to disabled SMs or bad block scheduling algorithm. But I do expect that kind of order to appear for GF11x generation of devices.

Do you have to get this to work on your device only or do you have to get it working on multiple devices?

Anyway, the information in the following threads may help you: