In order to successfully complete this assignment you need to participate both individually and in groups during class. Have one of the instructors check your notebook and sign you out before leaving class. Turn in your assignment using D2L.


ICA 10: Introduction to OpenMP#

visual model of a leader/worker parallel task breaking up to do individual work and then coming back to the main processor

Image from: Wikipedia

Agenda for today’s class (70 minutes)#

  1. (20 minutes) Quiz Review

  2. (20 minutes) Pre class assignment review

  3. (30 minutes) OpenMP Code Inspection


1. Quiz Review#

We will take 20 minutes to go over quiz feedback and discuss solutions.


2. Pre class assignment review#

QUESTION: Discuss with your group why we have to worry about race conditions when doing parallel computing and now when we are coding serially?

Record your answer here


3. OpenMP Code Inspection#

Now we are going to explore and try to learn the OpenMP syntax indirectly. Look around online and find some basic OpenMP coding exampes. Once you found some examples, try them out on the HPCC. Answer the following questions when exploring and testing the examples you found.

  • What is the source where you found your examples?

  • What OpenMP specific commands do you see in the Code?

  • When comparing to other examples, which commands seem common and which commands rare?

  • What do the commands seem to do?

  • Did you encounter any challenges trying to get the examples up and running on the HPCC?

Record your answers and discussion here


Congratulations, we’re done!#

Have one of the instructors check your notebook and sign you out before leaving class. Turn in your assignment using D2L.

Written by Dr. Dirk Colbry, Michigan State University (Updated by Dr. Nathan Haut in Spring 2025) Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.