Link to this document's Jupyter Notebook

In order to successfully complete this assignment you need to participate both individually and in groups during class. If you attend class in-person then have one of the instructors check your notebook and sign you out before leaving class on Wednesday February 24. If you are attending asynchronously, turn in your assignment using D2L no later than 11:59pm on Wednesday February 24.


In-Class Assignment: Practice using Wave Equation example

animated graph of a wave moving in 3d

Image from: https://commons.wikimedia.org/wiki/File:2D_Wave_Function_resize.gif

Agenda for today's class (70 minutes)

  1. (20 minutes) Pre class Review
  2. (20 minutes) Practice using OpenMP loop Wave Equation
  3. (30 minutes) 2D Wave Equation

1. Pre class Review

0223--OMP_Data_pre-class-assignment


2. Practice using OpenMP 1D Wave Equation

The rest of class we will try to help each other out so that everyone gets a parallel OpenMP version of the Pi-code working. We will use breakout rooms for smaller groups so you can help each other out. Lets see how far we get doing the following:

Group Google Document


3. 2D Wave Equation

Consider the following example program. See if you can get the serial version running. Benchmark it and then get it working faster using OpenMP


Congratulations, we're done!

If you attend class in-person then have one of the instructors check your notebook and sign you out before leaving class. If you are attending asynchronously, turn in your assignment using D2L.

Course Resources:

Written by Dr. Dirk Colbry, Michigan State University Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.