Under Windows XP (32 bit), I successfully built and tested a CUDA application, using Visual Studio 2005 on my work machine. I can only use device emulation mode (laptop with ATI chipset), but it compiles and works just fine.
Move the project to my home machine, same version of Visual Studio 2005 (Version 8.0.50727.762 SP.050727-7600), but this machine has a NVIDIA 9600 card. Same version of Windows XP. Both machines have the same CUDA version. (Version 2.3).
I get this error whenever I try and compile any CUDA code.
Parse Error 9
Visual Studio is generating the following command line;
“F:\CUDA\bin\nvcc.exe” -ccbin “c:\Program Files\Microsoft Visual Studio 8\VC\bin” -deviceemu -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/MTd -I “F:\CUDA\include” -I ./ -o Debug\CUDAWarpFull.obj CUDAWarpFull.cu
Going in by hand in a command window, I’ve removed each option. Eventually I got down to trying to compile a file which has nothing in it but including <cuda.h>, and I get the same problem. And cuda.h is identical to the one on my laptop.
I tried re-installing the toolkit, SDK, and drivers. I haven’t gotten to the point of re-installing VS 2005, yet.
Does anyone have any experience with this problem? What does the error mean? I’m almost certain it’s some kind of setup or configuration problem - but I’m running out of ideas. I’m so close to testing on real hardware, and this is REALLY frustrating.
Any help is greatly appreciated.