使用VS2010打开CUDA SDK示例时出现错误

发布于 2024-10-03 18:59:55 字数 428 浏览 0 评论 0原文

我已经安装了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终陌 2024-10-10 18:59:55

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

初懵 2024-10-10 18:59:55

据我所知,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文