Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552:...

7
ECE/CS 552: Introduction To Computer Architecture 1 ECE/CS 552: ECE/CS 552: Nanophotonics Nanophotonics Instructor: Mikko H Lipasti Fall 2010 i i f i i di University of Wisconsin-Madison Nanophotonics Nanophotonics Nanophotonics overview Sharing the nanophotonic channel Light-speed arbitration [MICRO 09] © Hill, Lipasti 2 Utilizing the nanophotonic channel – Atomic coherence [HPCA 11] Good News Good News Technology advances at astounding rate – 19 th century: attempts to build mechanical computers Early 20 th century: mechanical counting systems (cash registers, etc.) Mid 20 th century: vacuum tubes as switches Si i i d i i 1.00E+07 IC Capacity 19651995 5.00E+09 1.00E+10 IC Capacity 19652010 Since: transistors, integrated circuits 1965: Moore’s law [Gordon Moore] Predicted doubling of IC capacity every 18 months Drives functionality, performance, cost Exponential improvement for 40+ years Built on Von Neumann model (fetch/execute) 0.00E+00 1965 1970 1975 1980 1985 1990 1995 2000 0.00E+00 1965 1975 1985 1995 2005 2015 Distributed processing on chip Distributed processing on chip Future chips rely on distributed processing Many computation/cache/DRAM/IO nodes Placement, topology, core uarch/strength, tbd Conventional interconnects may not suffice Buses not viable Crossbars are slow, power-hungry, expensive NOCs impose latency, power overhead Nanophotonics to the rescue Communicate with photons Inherent bandwidth, latency, energy advantages Silicon integration becoming a reality Challenges & opportunities remain Si Photonics: How it works Si Photonics: How it works 0.5 μm Waveguide O ti l Wi Laser Off-Chip Power [Koch ‘07] ~3.5 μm [HP] Ring Resonator Wavelength Magnet [Intel] Optical Wire OFF ON Ring Resonators Ring Resonators OF ON : Diverting ON : Diverting ON Ij ti 6 OF F ON : Diverting ON : Diverting + Detecting ON : Injecting

Transcript of Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552:...

Page 1: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 1

ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonicsInstructor: Mikko H Lipasti

Fall 2010i i f i i diUniversity of Wisconsin-Madison

NanophotonicsNanophotonics

Nanophotonics overview Sharing the nanophotonic channel

– Light-speed arbitration [MICRO 09]

© Hill, Lipasti2

Utilizing the nanophotonic channel– Atomic coherence [HPCA 11]

Good NewsGood News Technology advances at astounding rate

– 19th century: attempts to build mechanical computers– Early 20th century: mechanical counting systems (cash

registers, etc.)– Mid 20th century: vacuum tubes as switches

Si i i d i i

1.00E+07

IC Capacity 1965‐1995

5.00E+09

1.00E+10

IC Capacity 1965‐2010

– Since: transistors, integrated circuits

1965: Moore’s law [Gordon Moore]– Predicted doubling of IC capacity every 18 months

Drives functionality, performance, cost– Exponential improvement for 40+ years– Built on Von Neumann model (fetch/execute)

0.00E+00

1965 1970 1975 1980 1985 1990 1995 2000

0.00E+00

1965 1975 1985 1995 2005 2015

Distributed processing on chipDistributed processing on chip Future chips rely on distributed processing

– Many computation/cache/DRAM/IO nodes– Placement, topology, core uarch/strength, tbd

Conventional interconnects may not suffice– Buses not viable– Crossbars are slow, power-hungry, expensive– NOCs impose latency, power overhead

Nanophotonics to the rescue– Communicate with photons– Inherent bandwidth, latency, energy advantages– Silicon integration becoming a reality

Challenges & opportunities remain

Si Photonics: How it worksSi Photonics: How it works

0.5 μm

Waveguide• O ti l Wi

Laser• Off-Chip Power

[Koch ‘07]

~3.5 μm

[HP]

Ring Resonator• Wavelength Magnet

[Intel]

• Optical Wire

OFFON

Ring ResonatorsRing Resonators

OF ON : Diverting ON : Diverting ON I j ti

6

OFF

ON : Diverting ON : Diverting+ Detecting

ON : Injecting

Page 2: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 2

Key attributes of Si photonicsKey attributes of Si photonics

Very low latency, very high bandwidth Up to 1000x energy efficiency gain ChallengesChallenges

– Resonator thermal tuning: heaters

– Integration, fabrication, is this real?

Opportunities– Static power dominant (laser, thermal)

– Destructive reads: fast wired or

Corona substrate Corona substrate [ISCA08][ISCA08]

Targeting Year 2017– Logically a ring topology

– One concentric ring per node

– 3D stacked: optical, analog, digital

$ $

$$ $

$$$$

$ $ $ $

$$

$

8

Multiple writer single reader Multiple writer single reader (MWSR) interconnects(MWSR) interconnects

latchless/

Arbitration prevents corruption of in-flight data

wave-pipelined

Motivating an optical arbitration solutionMotivating an optical arbitration solution

MWSR Arbiter must be:1. Global - Many writers requesting access2. Very fast – Otherwise bottleneck

Optical arbiter avoids OEO conversion delays, provides light-speed arbitration

Proposed optical protocolsProposed optical protocols

Token-based protocols– Inspired by classic token ring

– Token == transmission rightsg

– Fits well with ring-shaped interconnect

– Distributed, Scalable

– (limited to ring)

BaselineBaseline

Based on traditional token protocols

Repeat token at each node

d i– But data is not repeated!

– Poor utilization

Page 3: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 3

Token - Inject Token - Seize Token - Pass

Optical arbitration basicsOptical arbitration basics

Power

Waveguide

Ring resonator

•No Repeat!•Token latency bounded by the time of flight between requesters.

Token SlotToken SlotToken ChannelSingle Token / Serial Writes Multiple Tokens / Simultaneous Writes

Arbitration solutions

Token passing allows token to pace transmission tail (no bubbles) Token passing allows token to directly precede slot

Flow control and fairnessFlow control and fairnessFlow Control: Use token refresh as opportunity to encode

flow control information (credits available) Arbitration winners decrement credit count Arbitration winners decrement credit countFairness: Upstream nodes get first shot at tokens Need mechanism to prevent starvation of

downstream nodes

Results Results -- PerformancePerformanceUniform HotSpot

Token Slot benefits from • the availability of multiple tokens (multiple writers)• fast turn-around time of flow-control mechanism

Results Results -- LatencyLatencyUniform HotSpot

Token Slot has the lowest latency and saturates at 80%+ load

Optical arbitration summaryOptical arbitration summary Arbitration speed has to match transfer

speed for fine-grained communication– Arbiter has to be optical

High throughput is achievable– 85+% for token slot

Limited to simple topologies (MWSR) Implementation challenges

– Opt-elec-logic-elec-opt in 200ps (@5GHz)

Page 4: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 4

NanophotonicsNanophotonics

Nanophotonics overview Sharing the nanophotonic channel

– Light-speed arbitration [MICRO 09]

© Hill, Lipasti19

Utilizing the nanophotonic channel– Atomic coherence [HPCA 11]

What makes coherence hard?What makes coherence hard?

Unordered interconnects – split transaction buses,

meshes, etcSpeculationSpeculation

– Sharer-prediction, speculative data use, etc.Multiple initiators of coherence requests

– L1-to-L2, Directory Caches, Coherence Domains, etc

State-event pair explosion Verification headache

Example: MSI Example: MSI (SGI(SGI--OriginOrigin--like, directory, invalidate)like, directory, invalidate)

Stable States

21

Example: MSI Example: MSI (SGI(SGI--OriginOrigin--like, directory, invalidate)like, directory, invalidate)

Stable States

Busy States

22

Example: MSI Example: MSI (SGI(SGI--OriginOrigin--like, directory, invalidate)like, directory, invalidate)

Stable States

Busy States

23

Races

“unexpected” events from concurrent requests to same block

Cache coherence complexityCache coherence complexityL2 MOETSI Transitions

24[Lepak Thesis, ‘03]

Page 5: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 5

Cache coherenceCache coherenceverification headacheverification headache

Papers:So Many States, So Little Time:

Verifying Memory Coherence in the Cray X1Complex Protocol=

SimpleSimple

25

Formal Methods:e.g. Leslie Lamport’s TLA+ specification language @ Intel

Intel Core 2 Duo Errata:AI39. Cache Data Access Request from One Core Hitting a Modified Line in the L1 Data Cache of the Other Core May Cause Unpredictable System Behavior

Complex Verification

SimpleSimple

Atomic Coherence: SimplicityAtomic Coherence: Simplicityw/ races w/o races

26

Race resolutionRace resolution• Cause: Concurrently active coherence requests to block A • Remedy: Only allow one coherence request to block A to be

active at a time.

27

Core 0$CACHE$

Core 1$CACHE$

AA

Race resolutionRace resolution

Core 0$CACHE$

Core 1$CACHE$

A

Atomic Substrate

28

Coherence Substrate

MSI

Race resolutionRace resolutionAtomic

Substrate

MS

Coherence Substrate

29

MSI

-- Atomic Substrate is on critical path+ Can optimize substrates separately

Atomic & Coherence SubstratesAtomic & Coherence Substrates

Coherence Substrate

Atomic Substrate

aggressive aggressive

30

(Apply Fancy Nanophotonics Here)

(Add speculation to a traditional protocol)

Page 6: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 6

MutexesMutexes circulate on ringcirculate on ring

P2P2P2P2P2P2P2P2P2P2 Single out mutex:hash(addr X) λ Y @ cycle Z

P0P0P0P0P0P0P0P0P0P0

31

MutexMutex acquireacquire[Requesting

Mutex]

P2P2P2P2P2P2P2P2P2P2

[Requesting Mutex]

[Won Mutex]

P0P0P0P0P0P0P0P0P0P0

32

Exploits OFF-resonance rings: mutex passes P1, P2 uninterrupted

[Requesting Mutex]

[Won Mutex]

[Release Mutex]

[Requesting Mutex]

[Won Mutex]

MutexMutex releasereleaseP2P2P2P2P2P2

P0P0P0P0P0P0

33

MutexesMutexes on ringon ring

$ $ $$$ $ $$$ $ $$$ $ $$$ $ $$$ $ $$$ $ $$$ $ $$

Detectors Injectors

1 mutex = 200 ps = ~2cm = 1 cycle @ 5 GHz

waveguidesid

mutex4

644

# Mutex

34

$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$$$ $

$$$$

$ $ $ $

$

2 cm

gwaveguide

1024Latency To:• seize free mutex : ≤ 4 cycles• tune ring resonator: < 1 cycle

Static:

Atomic Coherence: Atomic Coherence: ComplexityComplexity

35

Dynamic:(random tester)

* Atomic Coherencereduces complexity

PerformancePerformance(128 in-order cores, optical data interconnect, MOEFSI directory)

Slowdown relative to non-atomic MOEFSI

What is causing the slowdown?

36

coherence agnostic

Page 7: Nanophotonics ECE/CS 552: ECE/CS 552: NanophotonicsNanophotonics · 2019-11-26 · ECE/CS 552: Introduction To Computer Architecture 3 Token - Inject Token - Seize Token - Pass Optical

ECE/CS 552: Introduction To Computer Architecture 7

Optimizing coherenceOptimizing coherence

O.wned and F.orward State: • Responsible for satisfying on-chip read misses

Observation:

Holding Block B’s mutex gives holder free reign over coherence activity related to block B

37

Responsible for satisfying on chip read misses

Opportunity:• Try to keep O/F alive• If O (or F) block evicted:

While mutex is held, ‘shift’ O/F state to sharer

(or hand-off responsibility)

Optimizing coherenceOptimizing coherence• If O (or F) block evicted: ‘Shift’ O/F state to sharer

# L2 transitionsSpeedup relative to atomic MOEFSI

Complexity:

Performance:

38

(b/c less variety in sharing possibilities)

atomic MOEFSI

Atomic Coherence SummaryAtomic Coherence Summary Nanophotonics as enabler

– Very fast chip-wide consensus

Atomic Protocols are simpler protocols

races

coherence

– And can have minimal cost to performance (w/ nanophotonics)

– Opportunity for straightforward protocol enhancements: ShiftF

More details in HPCA-11 paper– Push protocol (update-like)

39

NanophotonicsNanophotonics

Nanophotonics overview Sharing the nanophotonic channel

– Light-speed arbitration [MICRO 09]

© Hill, Lipasti40

Utilizing the nanophotonic channel– Atomic coherence [HPCA 11]