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 11: Mmmmmmmm Pi#

Cartoon picture of a slice of pie.  Visual joke because we are going to calculate the math number pi in class

Agenda for today’s class (70 minutes)#

  1. (20 minutes) Pre class Assignment

  2. (20 minutes) Project Cross-cutting themes

  3. (30 minutes) Group OpenMP Pi code Timing Studies on the HPCC


1. Pre class Assignment#

DO THIS: Discuss the status of the PI code with your group. Did anyone get a working solution? Discuss any challenges you encoutered. If you got it working, share what you did to get it working.


2. Project Cross-cutting themes#

Think of some themes related to your project (parallel computing method, coding language, problem domain, etc.). We want to identify others in class that are doing some aspect of their project which is similar to yours. The goal is to find teams of people that may be able to support each other during the project. Go to the Google Doc and put list your name next to any theme that is relevant to your project. As well, add any additional themes that haven’t been included.


3. Group OpenMP Pi code Timing Studies on the HPCC#

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. Lets see how far we get doing the following:

  • If you are stuck or confused, raise your hand and ask for help.

  • Help your neighbors

  • If you have your basic code working, share it on the Google document.

  • If you get stuck review code in the Google document.

  • Once you have a parallel code working, do a scaling study and vary the number of cores. Plot the results and share your plot on the Google document.

  • Conduct the scaling study on different development nodes and generate different plots. Share them on the Google document.

  • Write a submission script and run the scaling study using the SLURM scheduler.

  • Share all of your solutions with each other using the following Google Document.

  • Review the Google Document and learn from each other’s solutions.

Group Google Document


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.