c++ - 如何为cuda编程设置visual studio 2005

标签 c++ cuda nvidia gpu

我已经尝试设置我的 visual studio 环境以使用 cuda 进行编程,但我仍然遇到错误,因为 cudaMemcpy 无法解析..

如果你们中的任何人请帮助我设置环境。我正在用 C++ 编写代码。

提前致谢。

最佳答案

查看 this answer有关 Visual Studio 2005 和 2008 的说明(对于 VS2010,请参阅 this answer)。

特别是,请参阅有关将 CUDA 运行时库添加到您的链接依赖项的部分。

关于c++ - 如何为cuda编程设置visual studio 2005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10190526/

相关文章:

c - 从 cudaBindTexture2D 读取

compiler-errors - 如何从NVIDIA CG获得编译错误?

c++ - 使用 const 字符串时创建默认构造函数

c++ - 获取选中的单选按钮的索引

c++ - 检测到合并排序堆损坏

c++ - 为什么 cudaMemcpy 花费这么多时间?

python - 更新我的 NVIDIA 版本过时错误

c++ - 如何使用 Eclipse 在 C++ 中测试和运行客户端服务器程序

cuda 快速近似函数 : what is the trade-off?

c++ - 发生泄漏检查错误时如何使cuda-memcheck返回非零