Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hello World C++ CUDA Program in Visual Studio 2010 (Windows 7)

I am trying to compile this Hello World program in Windows 7 with Visual Studio 2010 installed, but I get the following error message when I run nvcc hellocuda.cu:

nvcc fatal   : nvcc cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported

How can I compile this CUDA program ?

like image 352
Venus Avatar asked Dec 28 '22 05:12

Venus


1 Answers

NVCC checks VC++ compiler version from Visual Studio environment variables. NVCC says it supports only MSVC 8.0 and 9.0 compilers. In your case, you have MSVC 10.0 compiler. There seems to be a workaround to this issue, check out post #7 in this thread:
http://forums.nvidia.com/index.php?showtopic=179531 and also
http://forums.nvidia.com/index.php?showtopic=88585

like image 100
swatkat Avatar answered Jan 30 '23 00:01

swatkat