Visual Studio 2010中的Hello World C ++ CUDA程序(Windows 7) [英] Hello World C++ CUDA Program in Visual Studio 2010 (Windows 7)

查看:522
本文介绍了Visual Studio 2010中的Hello World C ++ CUDA程序(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在Windows 7中使用Visual HTML编译此 Hello World计划 Studio 2010已安装,但当我运行 nvcc hellocuda.cu 时,我收到以下错误消息:

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

如何编译此CUDA程序?

How can I compile this CUDA program ?

推荐答案

Visual Studio 2008 Express 。 (感谢sgolodetz)

Visual Studio 2008 Express was needed. (Thanks sgolodetz)

因此,使用Visual Studio 2010 Professional(也许2010 Express也可以), NVIDIA Parallel Nsight ,CUDA工具包,开发人员驱动程序和GPU计算SDK代码示例(工具包,驱动程序和sdk可以下载这里)我能够运行示例 Hello World in CUDA 程序。

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.

如何创建/在VS2008和VS2010中升级CUDA项目以使用Nsight 1.5和CUDA 3.2在启动具有正确设置的新VS 2010 CUDA项目时非常有用

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.

注意:我从来不能得到命令行 nvcc 才能正常工作,但我宁愿使用VS 2010 IDE。

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

更新:如何在visual studio 2008中启动新的CUDA应用程序?的答案也很有用

这篇关于Visual Studio 2010中的Hello World C ++ CUDA程序(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆