CUDA 4.0运行时问题
我有一台安装了 CUDA 3.2 并成功使用的计算机。 我最近安装了 CUDA 4.0,但是任何使用 CUDA 4.0 库(例如 cudart.lib)的程序都存在运行时问题,特别是初始化错误。 这也发生在计算 SDK 4.0(deviceQuery) 的示例中。如果我从 4.0 SDK 中获取示例,并链接 3.2 库,那么它可以完美运行。 我已经卸载了 CUDA Toolkit 3.2,但似乎 3.2 仍然在运行时占主导地位。 知道我应该做什么吗?
I have a computer on which I installed CUDA 3.2 and worked with successfuly.
I have lately installed CUDA 4.0, but any program that use the CUDA 4.0 libraries(such as cudart.lib) has run time issues, specifically Initialization Error.
This also happen in a sample from the computing SDK 4.0(deviceQuery). If I take the sample from the 4.0 SDK, and link the 3.2 lib instead, then it runs perfectly.
I have uninstalled CUDA Toolkit 3.2, but it seems somewhere 3.2 still dominate the run time.
Any idea what I should do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有说明您正在使用的驱动程序版本,但只有当我的驱动程序版本错误时我才收到该错误。转到 CUDA 下载页面 http://developer.nvidia.com/cuda-toolkit-40 并获取最新的驱动程序 (270.81)。应该有效。
You don't say anything about the driver version you are using but I only got that error when I had the wrong driver version. Go to the CUDA downloads page http://developer.nvidia.com/cuda-toolkit-40 and get the latest driver (270.81). Should work.
如果您在 Visual Studio 中设置环境时遇到困难,请参阅此处:CUDA 4.0 问题
If you are having difficulties setting up the environment in Visual Studio, refer here: CUDA 4.0 Issues