6

什么是CUDA(入门资料)?

 2 years ago
source link: https://ylhao.github.io/2018/09/05/124/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

什么是CUDA(入门资料)?

创建时间:2018-09-05 17:48
字数:198 阅读:75

CUDA 是 NVIDIA 推出的用于自家 GPU 的并行计算框架,也就是说 CUDA 只能在 NVIDIA 的 GPU 上运行,而且只有当要解决的计算问题是可以大量并行计算的时候才能发挥 CUDA 的作用。

在 CUDA 的架构下,一个程序分为两个部分:Host 端和 Device 端。Host 端是指在 CPU 上执行的部分,而 Device 端则是在 GPU 上执行的部分。Device 端的程序又称为 “kernel”。Host 端和 Device 端拥有各自的存储器。CUDA 编程包括主机端(Host)和设备端(Device)两部分代码。

CUDA 程序的处理流程:

  1. 从 CPU 上拷贝数据到 GPU。
  2. 调用 kernel 来操作存储在 GPU 中的数据。
  3. 将操作的结果从 GPU 拷贝到 CPU。

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达,可以在文章下方的评论区进行评论,也可以邮件至 [email protected]

文章标题:什么是CUDA(入门资料)?

文章字数:198

本文作者:ylhao

发布时间:2018-09-05, 17:48:12

最后更新:2019-06-07, 11:50:53

原始链接:https://ylhao.github.io/2018/09/05/124/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

0 条评论

来做第一个留言的人吧!

©2018 衣龙浩

Buit with Hexo and 3-hexo theme


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK