版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
多核處理器□
Evolvement
of
computer
architecturescalarsequenceoverlap
Fun
parallelMulti
fun
Pipe
linePseudo-vecto
Obvious
vectopm
m
I'-
1Eedgend
Multi
multiprocesprocessor
processing
array
computerMulti-Core第二節(jié)共享存儲器多處理機系統(tǒng)口
多核處理器系統(tǒng)■
系統(tǒng)中包含一個多核的處理器芯片■
每個處理器核能夠獨立運行程序口
單核多處理器系統(tǒng)■
多個單核的處理器構(gòu)成的系統(tǒng)■
處理器之間的通信延遲時間較長口
多核多處理器系統(tǒng)■
多個多核處理器構(gòu)成的并行系統(tǒng)■
兩個并行處理的層次□
按程序特征MIMD■
SPMD□
代
替SIMD□
按處理機特征■
同
構(gòu)homogenius■
異構(gòu)heterogenius多處理機系統(tǒng)的結(jié)構(gòu)分類互連網(wǎng)絡(luò)MCPUCPUCPUMM□
獨立的指令執(zhí)行和控制單元■獨立的功能部件■
獨立的控制器□
完整的指令流水線多核處理器分類□
單核多線程處理器■
單
核CPU
構(gòu)
成□
多核處理器■
多核芯片構(gòu)成□
多核多線程處理器■
每個核都是多線程的DRAMs
DRAMsMemory
Memorycontroller
controllerL2
L2cache
bank
cache
bankGlobal
switchInstruction
Data
Instruction
Data
cache
cache
cache
cacheMultithreaded
Multithreadedcore
coreMemorycontrollerL2cache
bank
VOInstruction|
Datacache
cacheMultithreadedcore·
DRAMs·ArchitectualState
Architectual
StateExecution
Engine
Execution
EngineLocal
APIC
Local
APICSecond
Level
CacheBus
InterfaceMutli-core
Memory
HierarchyLocal
LocalAPIC
APICSecond
Level
CacheBus
InterfaceLocal
LocalAPIC
APICSecond
Level
CacheBus
InterfaceLocalAPICSecond
Level
CacheBus
InterfaceLocalAPICSecond
Level
CacheBus
InterfaceArch.
Arch.
Arch.
Arch.State
State
State
StateExecution
Engine
Execution
EngineArchitectual
State
Architectual
StateExecution
Engine
Execution
EngineSystem
BusSystem
BusSystem
Bus多核處理器的分類CacheCacheCUEUEUCache單核多線程處理器單核單線程處理器多核多線程處理器CUEU多核處理器InterruptCU:CPUstate
+CacheCUCUCachelogicEUEUCUCUCUCU□CU
EU
CU
EU
CU
EU
CU
EUCache多
核
處
理
機共享存儲器CU
EUCU
EU
CU
EUCache
Cache
Cache單核多處理機系統(tǒng)共享存儲器互連網(wǎng)絡(luò)CU
EU
CU
EU
CU
EU
CU
EUCache多核多處理機系統(tǒng)共享存儲器互連網(wǎng)絡(luò)Deeper
Pipelining□
d
pe
atyhet
c
o
pli
rmance
further
is
toa
a
pipeline
twice
as
deep
as
the
original
pipeline
is□
Once
the
deep
pipeline
is
filled,
two
new
instructionsefoneripeepvrralaimpsonweneeOcapable
of
twice
the
peak
execution
rate.are
completed
every
original
cycle.cyc.1234567891011121314Instr.1IF1IF2ID1ID2EX1EX2M1M2WB1WB2Instr.2IF1IF2ID1ID2EX1EX2M1M2WB1WB2Instr.3IF1IF2ID1ID2EX1EX2M1M2WB1WB2Instr.4IF1IF2ID1ID2EX1EX2M1M2WB1WB2Instr.5IF1IF2ID1ID2EX1EX2M1M2WB1WB2cyc.1234567Instr.1IFIDEXMEMWBInstr.2IFIDEXMEMWBInstr.3IFIDEXMEMWBDeeper
Pipeliningshallow
scalar
pipelinedeep
scalar
pipelineDeeper
Pipelining□
However,
in
practice,
doubling
pipeline
depth
does
not
doubler
because
there
are
relatively
more
stall
cycles
that
need
totednceaaermlrootfee□
A
larger
instruction
window
is
needed
to
hide
lengthier
stalls
due
todata
hazards
(for
example,
data
cache
misses
take
more
cycles
toresolve
since
memory
access
time
in
nanoseconds
is
unchanged).□
is
edic
n
l
t(
o
s
b
n
I
ean
a
).EXnchdbrFthtweeecauseebsdtageneedereismorrcedigerrapshicltyranabeetion
paccuratpremormAsuperscalar
processing□
An
alternative
to
deeper
pipelining
is
to
fetch,issue,
and
execute
multiple
instructions
in
paralleleach
cycle,
exceeding
the
scalar
bottleneckexplicitly.□
This
approach
is
called,
appropriately,
superscalarprocessing.□
A
dual-issue
superscalar
processor
doubles
thepeak
execution
rate
with
respect
to
the
originalscalar
pipelinecyc.1234567Instr.1IFIDEXMEMWBInstr.2IFIDEXMEMWBInstr.3IFIDEXMEMWBInstr.4IFIDEXMEMWBInstr.5IFIDEXMEMWBInstr.6IFIDEXMEMWBcyc.1234567Instr.1IFIDEXMEMWBInstr.2IFIDEXMEMWBInstr.3IFIDEXMEMWBsuperscalar
processingscalarsuperscalarHardware
multithreading□
Hardware
multithreading
is
a
means
for
improving
pipeline□
It
enables
the
simultaneous
execution
of
multiple
independentprograms
on
the
same
pipeline.□
Independent
programs
are
an
abundant
source
of
instruction-leve/parallelism,
since
there
are
no
dependences
between
instructionsutilization
when
bottlenecks
prevent
further
speedup
of
single-from
different
threads.□
Hardware
multithreading
improves
pipeline
utilization
by
convertingthread-level
parallelism
to
instruction-level
parallelismthreaded
programs.early
forms
of
hardwaremultithreadinga
instructions
are
fetched
from
a
different
threadeach
cyclePipeline
stage:IFIDEXMEMWBDua/-issueT5T4T3T2T1superscalarpipelineT5T4T3T2T1Two
parallel
instructions
from
Thread
5Pipeline
stage:IFIDEXMEMWBDual-issueT1T4T1T2T1superscalarpipelineT3T1T1T4T5Simultaneous
multithreading□
Simultaneous
multithreading(SMT)
is
even
moreflexible:
a
singlepipeline
stage
may
mix
instructions
from
multiple
threads
during
theTwo
parallel
instructions,
one
from
Thread1
andone
fromThread3same
cycleDynamic
Scheduling□
Dynamic
scheduling
provides
a
means
forindependent
instructions
to
circumvent
previousstalled
instructions
and,
therefore,
execute
out-of-order.a
Out-of-order
execution
allows
useful
work
to
beoverlapped
with
the
load-use
stallsDynamic
Scheduling□
The
key
mechanism
forout-of-orderexecution
is
a
pool
of
instruction
buffersthat
decouples
the
instruction
fetch/decodestages
from
later
execution
stagesThese
instruction
buffers,
collectively
called
thescheduling
window
or
instruction
window,
providea
staging
area
in
which
instructions
wait
fortheir
source
operands
to
become
available.Instruction
fetch
engineInstruction
windowInstruction
executionengineDynamic
Scheduling□
Dynamic
scheduling
adds
another
stage
to
thepipeline
between
decode(ID)
and
execute
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年股權(quán)轉(zhuǎn)讓協(xié)議:合伙人退伙條款3篇
- 2024年股權(quán)變動保證金合同
- 2024年高效貨運汽車租賃合同
- 2024年版:煤炭購銷代理合同模板
- 2024手繪漫畫作品出版授權(quán)合同書3篇
- 2024年甲乙雙方關(guān)于石材加工廠安全防護(hù)與火災(zāi)防治的合同
- 2024年版離婚后共住生活權(quán)益合同版B版
- 2024中介公司房屋買賣合同書-共管賬戶安全協(xié)議3篇
- 2025年度物流倉儲安全生產(chǎn)責(zé)任制合同3篇
- 2024年環(huán)境污染第三方治理合同
- 2022心理學(xué)課題論文開題報告范文
- 自行招用保安員單位備案申請材料
- 一般抹灰分項工程檢驗批質(zhì)量驗收記錄
- DB32∕T 3377-2018 城市公共建筑人防工程規(guī)劃設(shè)計規(guī)范
- 中建三局住宅工程精益建造實施指南
- 分布式光伏發(fā)電項目并網(wǎng)驗收意見單
- 網(wǎng)站隱私政策模板
- YY∕T 1831-2021 梅毒螺旋體抗體檢測試劑盒(免疫層析法)
- 消弧產(chǎn)品規(guī)格實用標(biāo)準(zhǔn)化規(guī)定
- 裝飾裝修工程施工合理化建議和降低成本措施提要:完整
- 第十四章35kV變電站保護(hù)整定值計算實例
評論
0/150
提交評論