Course or collection
Performance Engineering of Software Systems
MIT OpenCourseWare · 23 catalogue entries
MIT OpenCourseWare · Fall 2018
Original course and syllabus ↗MIT 6.172 Performance Engineering of Software Systems, Fall 2018
Lecture 1: Introduction and Matrix Multiplication
Description: Professor Leiserson introduces 6.172 Performance Engineering of Software Systems . The class examines an example of code optimization using matrix multiplication and discusses the differences between programming languages Python, Java, and C. Inst
Lecture 2: Bentley Rules for Optimizing Work
Description: Prof. Shun discusses Bentley Rules for optimizing work and discusses a number of examples including packing and encoding, compile-time initialization, loop unrolling, short-circuiting, fast paths, and combining tests. Instructor: Julian Shun
Lecture 3: Bit Hacks
Description: Prof. Shun discusses an array of bit hacks, the types of hacks compilers do, and bit hacks to do by hand when the compiler doesn’t optimize. Instructor: Julian Shun
Lecture 4: Assembly Language & Computer Architecture
Description: Prof. Leiserson walks through the stages of code from source code to compilation to machine code to hardware interpretation and, finally, to execution. Instructor: Charles Leiserson
Lecture 5: C to Assembly
Description: This lecture focuses on how C code is implemented in x86-64 assembly. Dr. Schardl reasons through the mapping from C code to assembly in two steps: C to LLVM IR and then LLVM IR to Assembly. Instructor: Tao B. Schardl
Lecture 6: Multicore Programming
Description: This lecture covers modern multi-core processors, the need to utilize parallel programming for high performance, and how Cilk abstracts processor cores, handles synchronization and communication protocols, and performs provably efficient load bala
Lecture 7: Races and Parallelism
Description: Professor Shun discusses races and parallelism, how cilkscale can analyze computation and detect determinacy races, and types of schedulers. Instructor: Julian Shun
Lecture 8: Analysis of Multithreaded Algorithms
Description: Professor Leiserson explains divide-and-conquer recurrences, cilk loops, matrix multiplication, merge sort, and tableau construction. Instructor: Charles Leiserson
Lecture 9: What Compilers Can and Cannot Do
Description: T.B. Schardl discusses the Clang/LLVM compilation pipeline as well as reasons to study compiler optimizations, how to use compiler reports, and compiler optimization. Three case studies on diagnosing failures are examined. Instructor: Tao B. Schar
Lecture 10: Measurement and Timing
Description: This lecture is about how one can reliably measure the performance of software and examples of various factors that can contribute to incorrect measurements. Different timers are explored as well as the use of simulators. Instructor: Charles Leise
Lecture 11: Storage Allocation
Description: This lecture discusses different means of storage allocation, including stacks, fixed-sized heaps, and variable-sized heaps. The lecture also discusses garbage collection, including by counting reference pointers, mark-and-sweep, and stop-and-copy
Lecture 12: Parallel Storage Allocation
Description: Prof. Shun discusses the differences between malloc() and mmap(); how cactus stacks work; parallel allocation strategies including global heaps, local heaps, and local ownership; and incremental, parallel, and concurrent garbage collection. Instru
Lecture 13: The Cilk Runtime System
Description: This class is focused on the Cilk runtime system. It stresses the work-first principle: optimize for ordinary serial execution at the expense of additional computation in steals. There is an emphasis on performance models and parallel runtime syst
Lecture 14: Caching and Cache-Efficient Algorithms
Description: Prof. Shun discusses associativity in caches, the ideal cache model, cache-aware algorithms like tiled matrix multiplication, and cache-oblivious algorithms like divide-and-conquer matrix multiplication. Instructor: Julian Shun
Lecture 15: Cache-Oblivious Algorithms
Description: Prof. Shun discusses cache-oblivious algorithms through a simulation of heat diffusion and a 3-point stencil simulation. Caching and parallelism is discussed in Cilk. Instructor: Julian Shun
Lecture 16: Nondeterministic Parallel Programming
Description: Prof. Leiserson discusses nondeterministic parallel programming, atomicity implement through mutexes, determinacy races, and data races. Deadlock and the dining philosopher’s problem are also discussed. Instructor: Charles Leiserson
Lecture 17: Synchronization Without Locks
Description: Prof. Leiserson discusses non-lock synchronization using memory models, Peterson’s algorithm, instruction reordering, and hardware reordering. He discusses the compare-and-swap operation; lock-free stacks, pushes, and pops; and the ABA problem. In
Lecture 18: Domain Specific Languages and Autotuning
Description: Prof. Amarasinghe discusses domain specific languages, when they are applicable to be used, scheduling optimizations, and autotuning. The three languages discussed in particular are GraphIt, Halide, and OpenTuner. Instructor: Saman Amarasinghe
Lecture 19: Leiserchess Codewalk
Description: This lecture is an introduction to Leiserchess and Project 4 of the course. Instructor: Helen Xu
Lecture 20: Speculative Parallelism & Leiserchess
Description: Prof. Leiserson discusses speculative parallelism and its applications in parallel alpha-beta search and jamboree search. The lecture ends with a discussion of computer-chess programs. Instructor: Charles Leiserson
Lecture 21: Tuning a TSP Algorithm
Description: Jon Bentley, retired from Bell Labs Research, discusses the traveling salesperson problem. This class is a case study in implementing algorithms, recursive enumeration, algorithm engineering, and applying algorithms and data structures. Instructor
Lecture 22: Graph Optimization
Description: Prof. Shun discusses graph optimizations, algorithmic and by exploiting locality, and issues such how real-world graphs are large and sparse, irregular graph algorithms with many memory accesses, and optimizations working for some graphs, but not
Lecture 23: High Performance in Dynamic Languages
Description: Professor Steven Johnson talks about a new dynamic language called Julia as an alternative to the two-language approach for interactive math. Julia is then compared to Python and C. Instructor: Steven Johnson