Checkpoint for working global memory code. Use test2.cu for global memory model. test.cu works only for matrix sizes<512.