Parallel Computing: Lecture 6

Learning objectives

After this class, you should be able to:

  1. Explain the purpose of the following clauses: (i) critical, (ii) reduction, and (iii) schedule.
  2. Given sequential code, use the above clauses and other OpenMP directives to parallelize the code.
  3. Given sequential or parallel code, use OpenMP directives and clauses to get good performance. You may reorder loops, if necessary.

Reading assignment

  1. Chapter 17, sections 17.5 - 17.7.
  2. Chapter 17, pages 427.

Exercises and review questions


Last modified: 25 Jan 2007