为什么不使用GPU作为CPU? [英] Why not using GPUs as a CPU?

查看:173
本文介绍了为什么不使用GPU作为CPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题仅与编程有关,因为我想从以下两个问题中得到答案:

I know the question is only partially programming-related because the answer I would like to get is originally from these two questions:

为什么CPU核心数量如此之少(相对于GPU)?为什么我们不使用GPU而不是CPU,仅使用GPU或仅使用CPU? (我知道GPU是专用的,而CPU更多地用于多任务等).我也知道内存(主机与GPU)的局限性以及精度和缓存功能.但是,就硬件比较而言,高端到高端CPU/GPU比较GPU的性能要高得多.

Why are CPU cores number so low (vs GPU)? and Why aren't we using GPUs instead of CPUs, GPUs only or CPUs only? (I know that GPUs are specialized while CPUs are more for multi-task, etc.). I also know that there are memory (Host vs GPU) limitations along with precision and caches capability. But, In term of hardware comparison, high-end to high-end CPU/GPU comparison GPUs are much much more performant.

所以我的问题是:我们可以在操作系统,应用程序等方面使用GPU代替CPU吗

我问这个问题的原因是因为我想知道当前计算机为何仍使用2个主处理单元(CPU/GPU)和两个主内存和缓存系统(CPU/GPU)的原因,即使它是不是程序员想要的东西.

The reason I am asking this questions is because I would like to know the reason why current computers are still using 2 main processing units (CPU/GPU) with two main memory and caching systems (CPU/GPU) even if it is not something a programmer would like.

推荐答案

GPU专为图形相关处理而设计(显然),这本质上是得益于并行处理(一次执行多个任务/计算).这意味着,与您可能知道的通常具有2-8个内核的现代CPU不同,GPU具有数百个内核.这意味着它们特别适合处理诸如3D游戏或其他图形密集型活动中可能遇到的光线追踪之类的事情.

GPUs are designed for graphics related processing (obviously), which is inherently something that benefits from parallel processing (doing multiple tasks/calculations at once). This means that unlike modern CPUs, which as you probably know usually have 2-8 cores, GPUs have hundreds of cores. This means that they are uniquely suited to processing things like ray tracing or anything else that you might encounter in a 3D game or other graphics intensive activity.

CPU的核心数量相对有限,这是因为CPU所面临的任务通常无法从并行处理中受益,几乎不能像渲染3D场景那样受益.实际上,由于CPU通常执行的任务的性质以及不会编写许多程序来利用大量内核的事实,CPU中过多的内核实际上可能会降低计算机的性能. .这意味着对于Internet浏览或大多数其他桌面任务,具有几个强大内核的CPU比具有许多很多较小内核的GPU更适合该工作.

CPUs on the other hand have a relatively limited number of cores because the tasks that a CPU faces usually do not benefit from parallel processing nearly as much as rendering a 3D scene would. In fact, having too many cores in a CPU could actually degrade the performance of a machine, because of the nature of the tasks a CPU usually does and the fact that a lot of programs would not be written to take advantage of the multitude of cores. This means that for internet browsing or most other desktop tasks, a CPU with a few powerful cores would be better suited for the job than a GPU with many, many smaller cores.

要注意的另一件事是,更多的内核通常意味着需要更多的功率.这意味着从功率和热量的角度来看,256核电话或笔记本电脑将是不切实际的,更不用说制造方面的挑战和成本了.

Another thing to note is that more cores usually means more power needed. This means that a 256-core phone or laptop would be pretty impractical from a power and heat standpoint, not to mention the manufacturing challenges and costs.

这篇关于为什么不使用GPU作为CPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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