How many registers could one thread use at most? When would the data be spit out to local memory?

Thanks so much. I thought this 128 was the maximum only for this --maxrregcount instruction. So 128 registers per thread is also for hardware.

Nope, not wasted. You will be able to have another active block.

Nope, not wasted. You will be able to have another active block.