Lecture 14

Learning objectives

After this class, you should be able to:

  1. Optimize multicore code to make better use of the memory hierarchy by (i) reducing false sharing through better data distribution, (ii) making better use of multiple memory banks, and (iii) assigning threads to cores such that they make better use of shared or private cache.

Reading assignment

  1. Refer to documentation on the different methods mentioned for specifying thread-core affinity in the lecture 14 slides.

Exercises and review questions


Last modified: 24 Feb 2010