Error MSB3721 with Cuda 5.5 and VS 2010 Professional

Hello Everyone,

when i try to compile .cu files in VS 2010 Professional, i get the following error:

“Error 2 error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe” -gencode=arch=compute_10,code="sm_10,compute_10" --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include” -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler “/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\kernels.cu.obj “\cr.uni-frankfurt.de\homes\stelzer\s1378004\documents\visual studio 2010\Projects\cudaprojekt12\cudaprojekt12\kernels.cu”” exited with code 2."

The target file is located in “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets”, line 592 column 10

Cuda and NSight seem istalled correctly, and i can acces the CUDA- and NSight Tools in VS 2010

Has someone an idea where this comes from and how to fix it?

Thank you!

Chenya

I suspect that the compiler might have issues with UNC paths:

\\cr.uni-frankfurt.de\homes\stelzer\s1378004\documents\visual studio 2010\Projects\cudaprojekt12\cudaprojekt12\kernels.cu

Try either mapping a drive location to that network share or place it on a local drive and see if it is fixed.