Parallel Computing: Lecture 7

Learning objectives

After this class, you should be able to:

  1. Explain the purpose of the following directives, clauses, and functions: (i) parallel, (ii) omp_get_thread_num, (iii) for, (iv) single, (v) nowait, (vi) sections, (vii) section, (viii) omp_get_wtime, and (ix) omp_get_wtick.
  2. Given sequential code, use the above features to parallelize the code efficiently.

Reading assignment

  1. Chapter 17, sections 17.8-17.10, tutorial at: http://www.llnl.gov/computing/tutorials/openMP, course at: http://webct.ncsa.uiuc.edu:8900/webct/public/home.pl.
  2. None.

Exercises and review questions


Last modified: 30 Jan 2007