Introduction to OpenMP

A pleasantly parallel OpenMP program

This lab is intended to be an introduction to OpenMP programming. Provided is the sequential code for a 1D-2D Jacobi stencil. Your tasks for the lab are: (Assume number of iterations to be 2000 (default setting in code))

  1. Understand the provided code.
  2. Use OpenMP to parallelize the given code.
  3. Pick a large enough N, and get speedup.
  4. Plot the speedup.

The deliverable for today's lab is the plot of the speedup.