When several CUDA threads print their IDs, the output may look ordered—but CUDA does not guarantee which thread runs first. Four threads may appear as 0, 1, 2, 3, while launches spanning multiple blocks can produce different orders across runs. section 2.7
A misleadingly consistent result
Remove a thread-index condition so all four threads print. On real hardware they will likely appear in order when running as one warp, but that order is not guaranteed. The swforces.com environment always runs a block in fixed order, so repeated output there can hide the variation. section 2.7
