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 18: Introduction to CUDA#

Image from: https://www.nvidia.com
Agenda for today’s class (70 minutes)#
(10 minutes) HW3 Cuda
(60 minutes) Introduction to CUDA
1. HW3 Cuda#
Homework 3 has been posted to the course website and will be due Sunday, March 23 by 11:59 PM. Please take a moment to review the posted assignment to get an idea of what is expected for this homework. CUDA coding is challenging, so it is recommended that you get started early on this assignment.
2. Introduction to CUDA#
Key things to note about CUDA:
Always pick a dev node with a CUDA card (ex: dev-amd20-v100)
Type ‘module load CUDA’ to load in the CUDA libraries and compilers.
Use
nvcc
instead ofgcc
when compiling cuda code.Error checking is hard always use a CUDA_CALL and capture your kernel error outputs.
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!#
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)
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.