Parallel Systems¶
General Informations¶
These lectures take place in every monday from 9h45 to 12h45. The coordinator for these lectures is Arnaud Legrand.
The next lecture will be on Monday 24/09 in room CNAM 128 from 9h45 to 13h00.
In doubt, the planning with lecture rooms is available here.
Objectives¶
Today, parallel computing is omnipresent across a large spectrum of computing platforms. At the ``microscopic'' level, processor cores have used multiple functional units in concurrent and pipelined fashions for years, and multiple-core chips are now commonplace with a trend toward rapidly increasing numbers of cores per chip. At the ``macroscopic'' level, one can now build clusters of hundreds to thousands of individual (multi-core) computers. Such distributed-memory systems have become mainstream and affordable in the form of commodity clusters. Furthermore, advances in network technology and infrastructures have made it possible to aggregate parallel computing platforms across wide-area networks in so-called ``grids.'' The popularization of virtualization has allowed to consolidate workload and resource exploitation in ``clouds'' and raise many energy and efficiency issues.
An efficient exploitation of such platforms requires a deep understanding of both architecture, software and infrastructure mechanisms and of advanced algorithmic principles. The aim of this course is thus twofold. It aims at introducing the main trends and principles in the area of high performance computing infrastructures, illustrated by examples of the current state of the art. It intends to provide a rigorous yet accessible treatment of parallel algorithms, including theoretical models of parallel computation, parallel algorithm design for homogeneous and heterogeneous platforms, complexity and performance analysis, and fundamental notions of scheduling and work-stealing. These notions will always be presented in connection with real applications and platforms.
Program and expected schedule¶
Check last year's schedule to get a foretaste.
24 September 2012: Arnaud LegrandIntroduction to parallel computing. High Performance Architectures Processors (superscalar, simultaneous multi-threading, multi-core, GPU…). Symmetric MultiProcessors. OS features for cluster computing Multi-threading. Cache-aware vs. cache-oblivious algorithms.Documents:slides PC01parallelarchitectures.pdf and What every programmer should know about memoryWork to do:Study the slides, get more knowledge (e.g., on wikipedia) on all techniques presented in the slides (e.g., pipelining, hyperthreading, snoopy cache coherence, Grid computing, etc.). Do not limitate to the reading of the previous links and browse related links to get a good picture of recent evolutions. You can also have a look at the top500 and summary1 October 2012: Arnaud LegrandFrom clusters to Grids. Communication models.Documents:End of the previous slides + beginning of these ones PC02parallelalgorithms.pdfReferences:I don't think reading these books will be particularly useful to you for this lecture (read more condensed information in wikipedia instead) but here are two classical references on Grid computing.- Fran Berman, Geoffrey Fox, and Anthony Hey. Grid Computing: Making the Global Infrastructure a Reality. John Wiley & Sons, 2003.
- Ian Foster and Carl Kessellman. The Grid 2: Blueprint for a New Computing Infrastructure. Morgan Kaufmann, 2003.
8 October 2012: Arnaud LegrandParallel algorithms on a ring and on a grid. The key notions are speedup/efficiency, Amhdal's law, pipelining, changing granularity to improve efficiency, and searching for sequential time in parallel algorithms.Documents:The series of slides from the previous lecture.Work to do: You need to read the whole set of slides even if I haven't presented all of them during the lecture. You should also play with MPI on G5K: First, you may want to have a look at the following documents to know how to run an MPI code on G5K (slides in French, Wikipage, and Cheat Sheet). Then, there are two possible options that do not illustrate the same issues:- Practical session on performance evaluation of parallel programs. PCparsort.pdf, parsort-1.0.tar.gz, mpisort.c This session is great for understanding the problems of measurement and parallel speedup.
- Double broadcast parallel matrix multiplication 07MPItutorial.tgz This session is great for understanding the data movements and distribution in an SPMD program and the power of collective communication operations.
15 October 2012: Vincent DanjeanHigh Performance Networks: bandwidth, latency, DMA, PIO, overlapping. How to Efficiently Program High Performance Architectures ? System and Low Level approaches. MPI, pthreads, openMPI, CUDA, openCL, …Documents:slides PC04HPC101.pdf22 October 2012: Arnaud LegrandFrom fine-grain to coarse-grain. PRAM, sorting networks and application to implementation on NOWs.Documents:PC05theory.pdf (you need to read and understand the whole set of slides, even those on FFT that have not been presented during the lecture; they are very similar in essence to the sorting networks and are thus a good exercise) and beginning of PC06scheduling.pdf.5 November 2012: Arnaud LegrandModeling parallel programs and platforms. Fundamental characteristics: Work and Depth. Dataflow graph representation of an execution. BSP programs. Introduction to Scheduling (see previous slides)12 November 2012: Vincent DanjeanHow to Efficiently Communicate on Distributed Architectures ? Research aspects of mixing different HP API (e.g. how to efficiently use MPI and pthreads, how to efficiently use threads on hierarchical platforms, ….)Documents:slides PC04HPC102.pdf19 November 2012: Vincent DanjeanFrom parallelism-aware algorithms to parallelism-oblivious algorithm. Work, depth and work-stealing. Illustration with a real implementation of such technique.Documents:slides PC07WS.pdf and slides on Kaapi PC07kaapi.pdf26 November 2012: Vincent DanjeanWork-stealing and data locality. Sorting and merging, FFT, matrix operations. Adaptive algorithms and cascading divide & conquer: prefix computation, data compression, linear system solvingDocuments:slides PC08algoadaptatif.pdf3 December 2012: Arnaud LegrandHype and trends: cloud computing and how Virtualization changed the Grid perspective, exascale computing and how energy issues changed the HPC perspective. Desktop Grids. On the convergence of cloud computing and desktop grids; Google Map Reduce.Documents:Cloud + MR slides PC10mapreduce.pdf, Cloud + Exascale slides PC08hype.pdf10 December 2012: Arnaud LegrandRecent challenges and trends in HPC linear algebra: a recap on the whole lecture.Documents:slides PC11linalgchallenges.pdf17 December 2012: Arnaud LegrandAnswering last year's exam questions.21 January 2013Exam
Course Organization¶
The course gives 6 credits (ECTS). In previous years, each student used to performs an individual performance evaluation study. Now that the MOSIG comprises a series of lectures on Performance Evaluation, this does not need to be done anymore solely in the context of the Parallel Systems lecture. There will be an exam at the end of the year and an extra lecture should be devoted to study together one of the exam of the previous years.
Bibliography¶
- Henri Casanova, Arnaud Legrand and Yves Robert. Parallel Algorithms Chapman & Hall, 2008.