当前位置:网站首页>【CUDA学习笔记】初识CUDA
【CUDA学习笔记】初识CUDA
2022-07-31 14:48:00 【切糕师学AI】
前言
本文是我学习CUDA课程的学习笔记,主要供自己以后温故知新,在此梳理一遍也算是二次学习。如对您有所帮助,不甚荣幸。初学CUDA,若所言有误,十分欢迎指正。如有侵权,请联系作者删除。
一、什么是GPU?
图形处理器(英语:Graphics Processing Unit,缩写:GPU;又称显示核心、显卡、视觉处理器、显示芯片或绘图芯片)是一种专门在个人电脑、工作站、游戏机和一些移动设备(如平板电脑、智能手机等)上执行绘图运算工作的微处理器。
二、什么是CUDA?
CUDA(Compute Unified Device Architecture,统一计算架构)是由英伟达NVIDIA所推出的一种集成技术,是该公司对于GPGPU( 英语:General-purpose computing on graphics processing units,简称GPGPU或GP²U))的正式名称。透过这个技术,用户可利用NVIDIA的GPU进行图像处理之外的运算,亦是首次可以利用GPU作为C-编译器的开发环境。CUDA 开发包(CUDA Toolkit )只能将自家的CUDA C-语言(对OpenCL只有链接的功能),也就是执行于GPU的部分编译成PTX中间语言或是特定NVIDIA GPU架构的机器代码(NVIDIA 官方称为 “device code”);而执行于中央处理器部分的C / C++代码(NVIDIA 官方称为 “host code”)仍依赖于外部的编译器,如Microsoft Windows下需要Microsoft Visual Studio;Linux下则主要依赖于GCC。
三、显卡结构示意图
下面是一张较新的显卡(TESLA V1000)示意图。绿色的都是核心,共5千多颗核心。
四、CPU vs GPU
- GPU可以比CPU快几十倍:cpu:一般电脑拥有4-8个cpu核心,桌面机多的可以达到24个; GPU:可以达到5、6千个。运行速度非常快,
- GPU在科学计算方面具有巨大潜力。

五、CPU与GPU的协作方式:
- GPU与CPU通过高速接口相连:PCIe
- GPU作为加速部件。

六、GPU应用:

边栏推荐
- Redis与分布式:主从复制
- C language basic practice (nine-nine multiplication table) and printing different asterisk patterns
- 力扣:714. 买卖股票的最佳时机含手续费
- Nuget package and upload tutorial
- "Listen to me, thank you" can be said in ancient poetry?Tsinghua University has developed an artifact of "Searching Sentences According to Meaning", which can search for the famous sayings you want wi
- In the future, the interviewer asks you why it is not recommended to use Select *, please answer him out loud!
- 【Pytorch】torch.argmax()用法
- Redis 】 【 publish and subscribe message
- 看交互设计如何集成到Scrum敏捷流程中
- OAuth2:使用JWT令牌
猜你喜欢

自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统

Unity Shader入门精要学习——透明效果

乡村基冲刺港交所:5个月期内亏2224万 SIG与红杉中国是股东

NC | 中国农大草业学院杨高文组揭示发现多因子干扰会降低土壤微生物多样性的积极效应...

The JVM a class loader

Architecture actual combat battalion module 8 message queue table structure design

Combination series - there are combinations when there are arrangements

Getting started with UnityShader (3) - Unity's Shader

OpenShift 4 - 定制 RHACS 安全策略,阻断生产集群使用高风险 Registry

Resnet&API
随机推荐
abaqus find contact pairs报错:surface name is already in use
OpenCV测量物体的尺寸技能 get~
如何进行需求分析评审
Getting started with UnityShader (1) - GPU and Shader
435. 无重叠区间
Unity Shader入门精要学习——透明效果
The recently popular domestic interface artifact Apipost experience
OpenShift 4 - 用 Operator 部署 Redis 集群
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东
The role of /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bashrc files
Recommendation System - Recall Phase - 2013: DSSM (Twin Towers Model) [Embedding (Semantic Vector) Recall] [Microsoft]
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
Sentinel安装与部署
49. The copy constructor and overloaded 】
组合系列--有排列就有组合
Redis 】 【 publish and subscribe message
模板与泛型编程值typelist实现
DeepLab系列学习
Sentinel服务熔断和降级
2021 OWASP TOP 10 漏洞指南