CUDA学习(2)--编程模型
来源:互联网 发布:人工智能语音识别 编辑:程序博客网 时间:2024/06/06 09:09
Key Abstraction of CUDA
- Thread Hierarchy –> Divide thread into several blocks
- Memory Hierarchy –> Local memory of threads, shared memory of blocks and global memory of grid
- Heterogonous Programming –> Kernel executes on the device and the rest of C code executes on the host
Thread Hierarchy
Divide thread into several blocks. And every block is independent, which means they can both execute parallel or serial.
Memory Hierarchy
The programming model of CUDA separate the memory of a program into three different part. And They are local memory of threads, shared memory of blocks and global memory of the grid.
Heterogeneous Programming
Heterogeneous programming of CUDA means the kernels execute on a GPU and the rest of C program executes on a CPU. And data can be transferred between CPU and GPU.
CPU(the host) executes the serial code and the GPU executes the parallel kernels.
阅读全文
0 0
- CUDA学习(2)--编程模型
- CUDA学习笔记(一) CUDA编程模型1
- cuda编程模型
- CUDA编程模型一
- CUDA编程模型
- CUDA笔记一编程模型
- CUDA编程(三):线程模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- CUDA学习笔记之 CUDA存储器模型
- cuda编程学习
- cuda 编程学习笔记
- SAP推出SAP Digital Boardroom
- CUDA学习(1)--CUDA简介
- 前端面试题及答案(3)
- [NOIP2016] 天天爱跑步 LCA 树上差分 线段树
- Kotlin入门(13)类成员的众生相
- CUDA学习(2)--编程模型
- 第十五篇:JAVA集合框架之Set接口实现类
- 安卓开发打造闪光控件效果
- C++设计模式:简单工厂类模式<初探>
- codeforces 182E Wooden Fence(方案数DP)【模板】
- 1_,查空值和将空值转换为实际值,按模式搜索(匹配符%)
- 管道,有名管道以及通信,共享内存
- Linux 系统命令command not found,如ls、cd等
- 论测试人员为什么需要参加需求评审