http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
Introduction to Parallel Programming Kathy Traxler - - PowerPoint PPT Presentation
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services Introduction to Parallel Programming Kathy Traxler ktraxler@lsu.edu LONI High Performance Computing Workshop - Louisiana Tech
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
LONI High Performance Computing Workshop - Louisiana Tech University October 11 &12, 2007 High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services
http://www.loni.org
LONI High Performance Computing Workshop - Louisiana Tech University October 11 &12, 2007 High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
Parallel computing is the simultaneous execution of the same task (split up and specially adapted) on multiple processors in order to obtain results faster. The idea is based on the fact that the process of solving a problem usually can be divided into smaller tasks, which may be carried out simultaneously with some coordination. From http://en.wikipedia.org/wiki/Parallel_computing A strategy for performing large, complex tasks faster. A large task can either be performed serially, one step following another, or can be decomposed into smaller tasks to be performed simultaneously, i.e., in parallel.
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
Amdahl's law is a model for the relationship between the expected speedup of parallelized implementations of an algorithm relative to the serial algorithm. For example, if a parallelized implementation of an algorithm can run 12% of the algorithm's operations arbitrarily fast (while the remaining 88% of the
speedup of the parallelized version is 1 / (1 - 0.12) = 1.136 times faster than the non-parallelized implementation. More technically, the law is concerned with the speedup achievable from an improvement to a computation that affects a proportion P of that computation where the improvement has a speedup of S. (For example, if an improvement can speed up 30% of the computation, P will be 0.3; if the improvement makes the portion affected twice as fast, S will be 2). Amdahl's law states that the
1 / (1 - P) + (P/S)
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
50 100 150 200 250 50 100 150 200 250 fp = 1.000 fp = 0.999 fp = 0.990 fp = 0.900
Only a small amount of serial content in program can degrade the parallel performance.
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
The more processors you have the more degradation your computations will see. Load balancing (waiting) Scheduling (Shared processors) I/O
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
Single Instruction, Single Data
Single Instruction, Multiple Data Multiple Instruction, Single Data Multiple Instr., Multiple Data
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
B U S
Shared memory: single address
to a pool of shared memory. (examples: Cray SV1, IBM Power4 node) Methods of memory access :
Distributed memory: each processor has its own local memory. Must do message passing to exchange data between processors. (examples: Clusters, Cray T3E) Methods of memory access :
Network
P M P P P P P M M M M M Memory P P P P P P
Bus
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007
http://www.loni.org
High Performance Computing @ Louisiana State University - http://www.hpc.lsu.edu/ Information Technology Services LONI High Performance Computing Workshop - Louisiana Tech University October 11&12, 2007