如何在 CUDA 中使用 CUTThread
我正在尝试运行我自己的多 GPU 示例,并且我正在遵循 NVIDIA 的示例。但是,我找不到 CUTThread 的定义位置,然后编译器说:
error: ‘CUTThread’ was not declared in this scope
I am trying to run my own multi-gpu example, and I am following the NVIDIA's example. However, I cannot find where CUTThread is defined and then the compiler says:
error: ‘CUTThread’ was not declared in this scope
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答是“根本不要使用 cutThread”。它来自 SDK,而不是工具包,并且不适合一般用途 - NVIDIA 不记录任何这些功能,也不保证它们可以工作,或者不会在不同版本之间改变定义或功能。如果您对多 GPU 计算感兴趣,请查看 这个答案最近的一个 Stackoverflow 问题。
The short answer is 'dont use cutThread at all'. It comes from the SDK, not the toolkit, and it not intended for general use - NVIDIA don't document any of these function, nor do they guarantee that they either work, or won't change in definition or function from release to release. If you are interested in multiGPU computing, have a look at this answer to a very recent Stackoverflow question.