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

后端 未结 4 814
既然无缘
既然无缘 2021-02-10 13:58

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:<

4条回答
  •  礼貌的吻别
    2021-02-10 14:26

    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

提交回复
热议问题