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

后端 未结 4 823
既然无缘
既然无缘 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:42

    Visual Studio 2008 Express was needed. (Thanks sgolodetz)

    So with Visual Studio 2010 Professional (maybe 2010 Express works too?), NVIDIA Parallel Nsight, CUDA Toolkit, Developer Drivers, and GPU Computing SDK code samples (toolkit, drivers, and sdk can be downloaded here) I was able to run the example Hello World in CUDA program.

    How to create/upgrade a CUDA project in VS2008 and VS2010 to work with Nsight 1.5 and CUDA 3.2 was very helpful in starting a new VS 2010 CUDA project with the proper settings.

    Side note: I was never able to get the command line nvcc to work correctly, but I rather use VS 2010 IDE instead.

    Update: How do I start a new CUDA app in visual studio 2008?'s answer was also useful

提交回复
热议问题