Lecture 20

Learning objectives

After this class, you should be able to:

  1. Explain OpenMP's programming model.
  2. Use the following OpenMP features to write parallel code: parallel and critical directives, omp_get_thread_num, and omp_get_num_threads.

Reading assignment

  1. Section 5.1 - 5.3.
  2. Lecture 20 slides.
  3. Lecture 20 example code.
  4. OpenMP tutorial.
  5. Page 224.

Exercises and review questions


Last modified: 14 Nov 2017