Parallel Computing: Lecture 7
Learning objectives
After this class, you should be able to:
- 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
.- Given sequential code, use the above features to parallelize the code efficiently.
Reading assignment
- 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.
- None.
Exercises and review questions
- Questions on current lecture's material
- (Programming) Exercise 17.9. Also, time the performance of your code for different matrix sizes and number of threads.
- Questions on next lecture's material
- None.