CUDA核心和CPU核心有什么区别? [英] What is the difference between CUDA core and CPU core?

查看:48
本文介绍了CUDA核心和CPU核心有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 CUDA 上做了一些工作,在 CPU 上做了很多工作,我试图了解两者之间的区别.我的 I5 处理器有 4 个内核,售价 200 美元,而我的 NVidia 660 有 960 个内核,成本大致相同.

I worked a bit with CUDA, and a lot with the CPU, and i'm trying to understand what is the difference between the two. My I5 processor has 4 cores and cost $200 and my NVidia 660 has 960 cores and cost about the same.

如果有人能解释两种处理单元架构在能力优缺点方面的主要区别是什么,我会非常高兴.例如,CUDA 核心是否有分支预测?

I would be really happy if someone could explain what are the key differences between the two processing units architecture in terms of abilities pros and cons. For example, does a CUDA core have branch prediction?

推荐答案

这是一个计算机体系结构问题,需要很长的答案.对于不准确的风险,我会尽量保持简单.您基本上通过询问 CUDA 核心处理分支预测来自我回答您的问题,答案是否定的.CPU 内核必须处理计算机执行的每一项操作、计算、内存获取、IO、中断,因此它具有庞大的复杂指令集,并且使用了优化获取指令分支预测的速度.
它还具有大缓存和快速时钟速率.要实现指令集,您需要更多的逻辑,因此与 GPU 相比,每个内核需要更多的晶体管更多的成本.

It is a computer Architecture question which entails a long answer. I will try to keep it very simple on the risk of being inaccurate. You basically self-answered your question by asking do CUDA core handle branch prediction, the answer is NO. A CPU core has to handle each single operation a computer does, calculation, memory fetching, IO, interrupts, therefore it has a huge complex instruction set, and to optimize the speed of fetching instruction branch prediction is used.
Also it has a big cache and fast clock rate. To implement the instruction set you need more logic thus more transistors more cost per core compared to the GPU.

GPU 内核具有更少的高速缓存、更简单的指令和更少的每个时钟的时钟频率,但是它们经过优化可以作为一个组进行更多的计算.指令集越简单,缓存内存越少,每个内核的成本就越低.

The GPU cores have less cache memory, simpler instruction and less clock rate per clock, however they are optimized to do more calculation as a group. The simple instructions set, the less cache memory makes them less expensive per core.

这篇关于CUDA核心和CPU核心有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆