Qhov txawv ntawm CPU thiab GPU

Cov txheej txheem:

Qhov txawv ntawm CPU thiab GPU
Qhov txawv ntawm CPU thiab GPU

Video: Qhov txawv ntawm CPU thiab GPU

Video: Qhov txawv ntawm CPU thiab GPU
Video: My BIGGEST Dairy Queen ice cream hack 2024, Lub Xya hli ntuj
Anonim

YCPU vs GPU

CPU, lub ntsiab lus rau Central Processing Unit, yog lub hlwb ntawm lub khoos phis tawj uas ua rau "kev suav" muab raws li cov lus qhia los ntawm lub khoos phis tawj program. Yog li ntawd, muaj CPU muaj txiaj ntsig tsuas yog thaum koj muaj lub khoos phis tawj uas yog "programmable" (kom nws tuaj yeem ua tiav cov lus qhia) thiab peb yuav tsum nco ntsoov tias CPU yog "Central" ua chav tsev, chav tsev uas tswj hwm lwm chav nyob / ib feem ntawm lub computer system. Hauv cov ntsiab lus niaj hnub no, CPU feem ntau nyob hauv ib qho silicon nti kuj paub tias yog microprocessor. Ntawm qhov tod tes, GPU, lub ntsiab lus rau Graphics Processing Unit, yog tsim los offload computationally intensive graphics ua hauj lwm los ntawm CPU. Lub hom phiaj tseem ceeb ntawm cov dej num zoo li no yog tsim cov duab kos rau ib chav tsev xws li lub monitor. Muab hais tias cov haujlwm zoo li no tau paub zoo thiab tshwj xeeb, lawv tsis tas yuav tsum tau programmed, thiab ntxiv rau, cov haujlwm zoo li no yog qhov sib npaug vim qhov xwm txheej ntawm cov khoom siv. Ib zaug ntxiv, nyob rau hauv cov ntsiab lus tam sim no, thaum lub GPUs tsis tshua muaj peev xwm feem ntau nyob hauv tib silicon nti uas koj pom CPU (qhov kev teeb tsa no hu ua GPU sib xyaw) lwm tus, muaj peev xwm ntau dua, muaj zog GPUs pom hauv lawv tus kheej silicon nti, Feem ntau ntawm ib qho PCB (Printed Circuit Board).

YCPU yog dab tsi?

Lub sij hawm CPU yog siv rau hauv cov tshuab xam zauv rau ntau tshaj tsib lub xyoos tam sim no, thiab nws tsuas yog cov txheej txheem ua haujlwm hauv cov khoos phis tawj thaum ntxov kom txog rau thaum "lwm" cov txheej txheem ua haujlwm (xws li GPUs) tau qhia los txhawb nws lub zog ua haujlwm. Ob qhov tseem ceeb ntawm CPU yog nws qhov Arithmetic Logic Unit (aka ALU) thiab Control Unit (aka CU). ALU ntawm CPU yog lub luag haujlwm rau kev suav lej thiab kev ua haujlwm ntawm lub tshuab xam zauv, thiab CU yog lub luag haujlwm nqa cov kev qhia ntawv los ntawm lub cim xeeb, txiav txim siab lawv thiab qhia lwm yam xws li ALU kom ua raws li cov lus qhia. Yog li ntawd, chav tswj hwm ntawm CPU yog lub luag haujlwm los nqa lub koob meej rau CPU los ua "central" ua haujlwm. Lub CU mus nqa cov lus qhia los ntawm lub cim xeeb, cov lus qhia yuav tsum tau muab khaws cia ua cov haujlwm hauv lub cim xeeb thiab, yog li ntawd, cov lus qhia zoo li no tseem hu ua "cov haujlwm khaws cia". Nws yuav pom tseeb tias CU yuav tsis ua raws li cov lus qhia, tab sis yuav pab txhawb tib yam los ntawm kev sib txuas lus nrog cov koom haum zoo xws li ALU.

GPU (aka VPU) yog dab tsi?

Lub sij hawm Graphics Processing Unit (GPU) tau qhia nyob rau hauv lub nineties lig los ntawm NVIDIA, lub tuam txhab tsim GPU, uas tau thov kom tau ua lag luam lub ntiaj teb thawj GPU (GeForce256) hauv 1999. Raws li Wikipedia, thaum lub sijhawm GeForce256, NVIDIA txhais GPU raws li cov hauv qab no: "ib lub chip processor nrog kev sib xyaw ua ke, teeb pom kev zoo, daim duab peb sab teeb / clipping, thiab rendering engines uas muaj peev xwm ua tau yam tsawg kawg ntawm 10 lab polygons ib ob". Ob peb xyoos tom qab, NVIDIA tus neeg sib tw ATI Graphics, lwm lub tuam txhab zoo sib xws, tau tso tawm cov txheej txheem zoo sib xws (Radeon300) nrog lub sijhawm VPU rau Visual Processing Unit. Txawm li cas los xij, raws li nws pom tseeb tias lub sij hawm GPU tau dhau los ua neeg nyiam tshaj li lub sij hawm VPU.

Hnub no GPUs tau xa mus rau txhua qhov chaw, xws li hauv cov tshuab kos, xov tooj ntawm tes, khoos phis tawj tus kheej thiab laptops, thiab game consoles. Niaj hnub nimno GPUs muaj zog heev hauv kev tswj cov duab, thiab lawv tau tsim cov programmable kom lawv tuaj yeem hloov mus rau ntau qhov xwm txheej thiab kev siv. Txawm li cas los xij, txawm tias tam sim no, GPUs raug programmed ntawm lub Hoobkas los ntawm qhov hu ua firmware. Feem ntau, GPUs muaj txiaj ntsig zoo dua li CPUs rau algorithms qhov twg kev ua cov ntaub ntawv loj yog ua nyob rau tib lub sijhawm. Nws xav tau, txij li GPUs tau tsim los tswj cov duab hauv computer, uas yog qhov sib npaug heev.

Tseem tseem muaj lub tswv yim tshiab no hu ua GPGPU (Lub Hom Phiaj Tseem Ceeb suav ntawm GPU), siv GPUs los siv cov ntaub ntawv sib luag muaj nyob rau hauv qee qhov kev siv (xws li bioinformatics) thiab, yog li ntawd, ua haujlwm tsis yog duab hauv GPU. Txawm li cas los xij, lawv tsis raug txiav txim siab hauv qhov kev sib piv no.

Dab tsi yog qhov txawv ntawm CPU thiab GPU?

• Thaum, qhov laj thawj tom qab xa tawm ntawm CPU yog ua raws li lub hlwb ntawm lub khoos phis tawj, GPU tau qhia los ua cov txheej txheem ua tiav uas ua haujlwm suav nrog cov duab ua haujlwm hnyav thiab ua haujlwm uas yuav tsum tau ua los ntawm txoj haujlwm ntawm projecting graphics rau cov zaub units.

• Raws li qhov xwm txheej, kev ua duab kos duab yog qhov sib npaug thiab, yog li ntawd, tuaj yeem yooj yim sib luag thiab nrawm.

• Nyob rau hauv lub sijhawm ntawm ntau lub hauv paus, CPUs tau tsim los nrog ob peb cores uas tuaj yeem tuav ob peb lub xov tooj software, uas tuaj yeem siv rau hauv ib qho kev pab cuam (kev qhia thiab xov qib sib luag). GPUs tau tsim los nrog ntau pua lub cores, siv qhov sib npaug uas muaj.

Pom zoo: