Popular Communication Operations - One-one sending/one-all - - PDF document

popular communication operations
SMART_READER_LITE
LIVE PREVIEW

Popular Communication Operations - One-one sending/one-all - - PDF document

CS140, 2014 II-1 Popular Communication Operations - One-one sending/one-all broadcasting - All-all broadcasting P 0 P 1 P 2 P 0 P 2 P 1 - Accumulation (or gather) P 0 . . . P 2 P n P 1 - Reduction I nitially : V 0 V 1 . . . V p


slide-1
SLIDE 1

CS140, 2014 II-1

✬ ✫ ✩ ✪

Popular Communication Operations

  • One-one sending/one-all broadcasting
  • All-all broadcasting

P0 P1 P2 P0 P1 P2

  • Accumulation (or gather)

P0 P1 P2 Pn . . .

  • Reduction

Initially : V0 V1 . . . Vp−1 Then : V0 ⊕ V1 ⊕ . . . ⊕ Vp−1 to all processors.

  • One-all personalized communication (single node

scatter).

  • All to all personalized communication.

CS, UCSB Tao Yang

slide-2
SLIDE 2

CS140, 2014 II-2

✬ ✫ ✩ ✪

Implementation of One-to-All Broadcasting

Store-Forward Routing

1 2 3 5 4 6

Ring

α - startup time β - transmission speed. The cost is: p 2 × (α + βm) Linear array: the worst cost is p(α + βm).

CS, UCSB Tao Yang

slide-3
SLIDE 3

CS140, 2014 II-3

✬ ✫ ✩ ✪

Broadcasting on Mesh

MESH Stage 1 Stage 2

The cost 2√p(α + βm)

CS, UCSB Tao Yang

slide-4
SLIDE 4

CS140, 2014 II-4

✬ ✫ ✩ ✪

Broadcast with wormhole routing

Wormhole routing: fast pipelined message sending between two nodes even they are not not directly

  • connected. Node-to-node communication cost

≈ α + βm and it does not depend on the node distance (i.e., the number of hops). Ring (Linear Array)

1 2 3

About log p steps and there is no message pipeline

  • contention. Total communication cost is about

log p(α + βm).

CS, UCSB Tao Yang

slide-5
SLIDE 5

CS140, 2014 II-5

✬ ✫ ✩ ✪

Implementation of All-to-All Broadcast

RING

Step 1 Step 2 3 4 3 4 1 2 1 2 Store-Forward

Total p − 1 steps. Thus the cost is (p − 1)(α + βm). Using store-forward is good enough.

CS, UCSB Tao Yang

slide-6
SLIDE 6

CS140, 2014 II-6

✬ ✫ ✩ ✪

One-to-all personalized broadcasting

Broadcasting from the center of a linear array.

p/2-1 p/2 p/2 p/2-1

Message size:

α +

p 2mβ

α + ( p

2 − 1)mβ

· · · α + 1mβ Total cost ≈

p 2α + 1 2( p 2)2mβ.

Broadcast from the left end-point of a linear array. (p − 1)α + (p−1)2

2

mβ.

CS, UCSB Tao Yang