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 Friday February 26. If you are attending asynchronously, turn in your assignment using D2L no later than 11:59pm on Friday February 26.


In-Class Assignment: Practice using Wave Equation example

Picture of a typical GPU card

Image from: https://www.nvidia.com

Agenda for today's class (70 minutes)

  1. (20 minutes) HW2 Review
  2. (30 minutes) HW3 Cuda
  3. (10 minutes) Introduction to CUDA

1. HW2 Review


2. HW3 Cuda


3. Introduction to CUDA

Key things to note about CUDA:

  1. Always pick a dev node with a CUDA card (ex: dev-amd20-v100)
  2. Type 'module load CUDA' to load in the CUDA libraries and compilers.
  3. Use nvcc instead of gcc when compiling cuda code.
  4. Error checking is hard always use a CUDA_CALL and capture your kernel error outputs.
  5. Be very careful with pointers. They are everywhere and can be really confusing.

DO THIS: Find a CUDA based example and see if you can get it to run on one of the GPU head nodes.


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.