




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: S-Gen Purpose Cmptn-GPU; Subject: Computer Science; University: University of Massachusetts - Amherst; Term: Spring 2006;
Typology: Study notes
1 / 113
This page cannot be seen from the preview
Don't miss anything!





























































































NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
Distributed parallel programming via message-passing
MPI
library
approach
Moving beyond point-to-point: collective communication
some slides from van de Geijn et al.
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
To send
n
bytes:
α
= startup latency
β
= per-byte cost
α
β
Naive broadcast (
p
processors):
α
(p-1) + (p-1)n
β
Minimum spanning tree
:
α
(log p + p - 1) + 2(p-1)/p * n
β
Note: does not model
contention
In practice, can avoid it
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
MPI Collective Ops
Synchronization
Barrier
Communication
Broadcast
Scatter, Gather
Reduce, Scan
Communicator management
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
processors
processors
broadcast
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science
NIVERSITY OFNIVERSITY OF
ASSACHUSETTSASSACHUSETTS
MHERST •MHERST
Department of Computer ScienceDepartment of Computer Science