VS2013 Sample Project ERROR [CUDA7.0+GTX970+VS2013]

Hi,

I downloaded CUDA 7.0 and build sample project (Samples_vs2013.sln).

While I am building the whole project, the Error messeages are showed as below.

Error 2 error MSB3721: ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\nvcc.exe” -dlink -o x64/Debug/cdpSimpleQuicksort.device-link.obj -Xcompiler “/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\lib\x64” cudadevrt.lib cudart_static.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -G --machine 64 x64/Debug/cdpSimpleQuicksort.cu.obj” 명령이 종료되었습니다(코드: 1). C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.0.targets 669 9 cdpSimpleQuicksort

오류 3 error MSB3721: ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\nvcc.exe” -dlink -o x64/Debug/cdpSimplePrint.device-link.obj -Xcompiler “/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\lib\x64” cudadevrt.lib cudart_static.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -G --machine 64 x64/Debug/cdpSimplePrint.cu.obj” 명령이 종료되었습니다(코드: 1). C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.0.targets 669 9 cdpSimplePrint

오류 4 error MSB3721: ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\nvcc.exe” -dlink -o x64/Debug/cdpBezierTessellation.device-link.obj -Xcompiler “/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\lib\x64” cudadevrt.lib cudart_static.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -G --machine 64 x64/Debug/BezierLineCDP.cu.obj” 명령이 종료되었습니다(코드: 1). C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.0.targets 669 9 cdpBezierTessellation

There are more 20 errors as similar as those errors.

So I have no idea how I break through those troubles.

I set default setting of Visual Studio 2013. I do not touch any options on Visual Studio 2013.

Please give me some guides.

I stuck this moment since 3days ago… :(

Thank you.

I dont know about the meaning of the error messages, but which version of Visual Studio 2013 did you use? The Full, Express or Community-Edition? CUDA doesnt work under the Express-Edition as far as i know and throws errors. Also: i dont know if the GTX970 is supported fully by CUDA 7.0, you might want to try the special CUDA 6.5-Version which supports GTX970/980.

GTX 970 is supported by CUDA 7.

this might be important:

명령이 종료되었습니다(코드: 1).

but since I don’t know chinese, I have no idea.

Have you tried this: http://stackoverflow.com/questions/20063982/error-msb3721-when-building-cuda-samples-for-vs2010-windows7-64bit

It is not chinese, according to google translate it is korean…
명령이 종료되었습니다(코드: 1) -> The command was terminated (code: 1).

Thank you karolmajek.

I downgrade CUDA 6.5 but CUDA 6.5 did not find my Graphic Card (GTX 970).

I don’t know why :(

As txbob stated, you need to download the version of CUDA 6.5 with added GTX 9xx support. Try this:

https://developer.nvidia.com/cuda-downloads-geforce-gtx9xx

oh Thank you. I will try

It works.
I downgrade CUDA 6.5 with njuffa’s link.

It really work fine.

Thank you.