On smid

Hi,

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.

Rgrds,

Heshsham

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:
http://forums.nvidia.com/index.php?showtopic=186669&st=0&p=1151897&fromsearch=1&#entry1151897
http://forums.nvidia.com/index.php?showtopic=195915&st=0&p=1209999&fromsearch=1&#entry1209999