Mersenne Twister issue with Cuda 4.0

I am trying to optimize Mersenne Twister using a Fermi classs GPU.

I was working with MTGP(MTGP download retry page) with Cuda 3.2, it was working without any issues. Recently I wanted to upgrade to Cuda 4.0, after installing it properly I tried to compile MTGP using the make file provided, but I am getting bunch of compilation errors as follows, Even though I tried I was not able to figure out why. Then I installed Cuda 3.2 again and when I tried to compile MTGP same source as earlier, it worked. It would be really appreciate if you can share your comments with me as this is very important to my thesis.

If you want to try this in your environment, first you need to run “make” file under MTGP folder and then run the make file under cuda-sample folder.

[root@localhost cuda-sample]# make
nvcc -DDEBUG -arch=compute_20 -ccbin=/usr/bin -o sample32-cuda mtgp32-cuda.cu …/mtgp32-fast.o
-I/root/NVIDIA_GPU_Computing_SDK/C/common/inc -I…/ -L/root/NVIDIA_GPU_Computing_SDK/C/lib -lcutil -lcuda
…/mtgp32-fast.o:1:8: warning: null character(s) ignored
…/mtgp32-fast.o:1:18: warning: null character(s) ignored
…/mtgp32-fast.o:1:20: warning: null character(s) ignored
…/mtgp32-fast.o:1:22: warning: null character(s) ignored
…/mtgp32-fast.o:1:34: warning: null character(s) ignored
…/mtgp32-fast.o:1:42: warning: null character(s) ignored
…/mtgp32-fast.o:1:48: warning: null character(s) ignored
…/mtgp32-fast.o:1:52: warning: null character(s) ignored
…/mtgp32-fast.o:1:87: warning: null character(s) ignored
…/mtgp32-fast.o:1:110: warning: null character(s) ignored
…/mtgp32-fast.o:1:120: warning: null character(s) ignored
…/mtgp32-fast.o:2:1: warning: null character(s) ignored
…/mtgp32-fast.o:2:17: warning: null character(s) ignored
…/mtgp32-fast.o:2:23: warning: null character(s) preserved in literal
…/mtgp32-fast.o:2:23: warning: missing terminating ’ character
.
.
.
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
…/mtgp32-fast.o(3): error: unrecognized token
Error limit reached.
100 errors detected in the compilation of “/tmp/tmpxft_000011fe_00000000-16_mtgp32-fast.cpp1.ii”.
Compilation terminated.

Thanks,
Nirodha