limit the number of registers per thread, for compute capability 2.0 there is 32K registers per SM while for 3.0 there is 64K. After adding --maxrregcount=32 in Makefile, this program works correct on GTX480