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 Monday March 15. If you are attending asynchronously, turn in your assignment using D2L no later than _11:59pm on Monday March 15.


In-Class Assignment: Alternatives

Agenda for today's class (70 minutes)

  1. (20 minutes) Pre class Review
  2. (5 minutes) Submitting CUDA Jobs on the HPCC
  3. (20 minutes) Homework Questions
  4. (25 minutes) Introducing MPI

1. Pre class Review

0314--CUDA_Alternatives_pre-class-assignment

As a class we will discuss the various alternatives to cuda and their pros and cons.


2. Submitting CUDA Jobs on the HPCC


3. Homework Questions

Homework is due Thursday of this weeks. What final questions do you have?


4. Introducing MPI

Our next big topic in class will be doing "Shared Network Parallization" using MPI (Message Passing Interface). MPI and it's libraries are loaded by default on the HPCC.

DO THIS: Get either the Pandemic or Galaxsee example working using MPI on the HPCC. Here are the basic steps:

  1. Compile the code without X11 options (there are no monitors on the HPC side.
  2. Write a submission script (similar to the one below).
  3. Submit the job and debug any errors.

QUESTION: What is different about the above submission script as compared to a shared memory job (OpenMP) or a GPU job (CUDA)?

Put your answer to the above question here.

DO THIS: What would a scaling study look like for this type of job? Can you think of a way to automatically vary the number of nodes (N) from from 1,2,4,8 etc?

Put your answer to the above question here.


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.