使用VS2010打开CUDA SDK示例时出现错误
我已经安装了cudatoolkit_3.2.16_win_64和gpucomputingsdk_3.2.16_win_64。当我选择 SDK 的示例时,出现以下错误:
导入的项目“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\NvCudaRuntimeApi.targets" 没有找到。确认路径 声明中是 正确,并且该文件存在于 磁盘。 C:\ProgramData\NVIDIA Corporation\NVIDIA GPU 计算 SDK 3.2\C\src\template\template_vc90.vcxproj
在解决方案资源管理器中,它显示“模板(不可用)”“项目文件已卸载”。
如何修复这个错误?
I have installed cudatoolkit_3.2.16_win_64 and gpucomputingsdk_3.2.16_win_64. When I choose a example of the SDK, I get this error:
The imported project "C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\NvCudaRuntimeApi.targets"
was not found. Confirm that the path
in the declaration is
correct, and that the file exists on
disk. C:\ProgramData\NVIDIA
Corporation\NVIDIA GPU Computing SDK
3.2\C\src\template\template_vc90.vcxproj
And in the Solution Explorer, it shows "template(unavailable)""the project file was unloaded".
How to fix this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
3.2 现在可以使用最新的位。天哪!实现此功能的最简单方法是安装 NSight 1.51,这将为您提供构建规则安装在 3.2 的正确位置。
以下是有关 CUDA 和 Visual C++ 2010 入门的两个教程:
http://blog.cuvilib.com/2011/02/24/how-to-run-cuda-in-visual-studio-2010/
http://www.ademiller.com/ blogs/tech/2011/03/using-cuda-and-thrust-with-visual-studio-2010/
NVIDIA 论坛上还有一个帖子:
http://forums.nvidia.com/index.php?showtopic=184539
3.2 now works with the latest bits. Horray! The simplest way to get this working is to install NSight 1.51 and this gets you the build rules installed in the right place for 3.2.
Here are two tutorials on getting started with CUDA and Visual C++ 2010:
http://blog.cuvilib.com/2011/02/24/how-to-run-cuda-in-visual-studio-2010/
http://www.ademiller.com/blogs/tech/2011/03/using-cuda-and-thrust-with-visual-studio-2010/
There's also a post on the NVIDIA forum:
http://forums.nvidia.com/index.php?showtopic=184539
据我所知,VS2010 无法使用 v3.2,因为尚不支持它。
但是如果您想继续使用 VS2010,您可以回退到 3.1:
CUDA + VS2010 without VS2008
As far as I know, you can't have v3.2 with VS2010 because it ain't supported yet.
But you could fallback to 3.1 if you would like to keep using VS2010:
CUDA + VS2010 without VS2008