学习 CUDA 的最佳方法是什么?
我有一些C/C++编程知识,想学习CUDA。我也在Mac上。那么学习 CUDA 的最佳方法是什么?
I have some knowledge of C/C++ programming and want to learn CUDA. I'm also on a mac. So what is the best way to learn CUDA?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下载开发套件,获取示例,并进行修改。然后从头开始写一些东西。
您可以参考这些资源
CUDA SDK 代码示例
CUDA 示例:通用 GPU 编程简介
nvidia
Download the dev kit, take one of the examples, and modify it. Then write something from scatch.
you can consult these resources
CUDA SDK Code Samples
CUDA by Example: An Introduction to General-Purpose GPU Programming
nvidia
想一个数值问题并尝试实现它。首先确保您有 NVIDIA 卡。 :) 从 NVIDIA 网站下载 SDK。阅读《CUDA编程指南》,它的长度不到200页,而且写得足够好,你应该能够一口气完成。选择一个足够简单的示例并开始修改/重写它。
Think up a numerical problem and try to implement it. Make sure that you have an NVIDIA card first. :) Download the SDK from NVIDIA web site. Read the "CUDA programming guide", it's less than 200 pages long and sufficiently well written that you should be able to do it in one pass. Pick a sufficiently simple sample and start modifying/rewriting it.