The use of Graphics Processing Units for rendering is well known, but their power for general parallel computation has only recently been explored. Parallel algorithms running on GPUs can often achieve up to 100x speedup over similar CPU algorithms, with many existing applications for physics simulations, signal processing, financial modeling, neural networks, and countless other fields.
This course will cover programming techniques for the GPU. The course will introduce NVIDIA's parallel computing language, CUDA. Beyond covering the CUDA programming model and syntax, the course will also discuss GPU architecture, high performance computing on GPUs, parallel algorithms, CUDA libraries, and applications of GPU computing. Problem sets will cover performance optimization and specific GPU applications in numerical mathematics, medical imaging, finance, and other fields.
Labwork will require significant programming. A working knowledge of the C programming language will be necessary. Although CS 24 is not a prerequisite, it (or equivalent systems programming experience) is recommended.
9 units; third term.
Kevin Yuh - email@example.com
Eric Martin - firstname.lastname@example.org
If you have a question/issue that likely affects other students, please ask it through Piazza. If you have something that only affects you or your project group, please send an email to both instructors.
|Supervising professors:|| Professor
Al Barr - email@example.com
|Time and place:|| MWF 3:00-3:55 PM
Kevin Yuh - Mondays, 9-11 PM
Eric Martin - Tuesdays, 7-9 PM
Andrew Zhao - Mondays, 9-11 PM
104 Annenberg, instructional laboratory
|Grading policy:|| There are 2 grading schemes for the class that
each student can choose beween:
Extensions may be granted if the TA's see it appropriate. E grades will not be granted unless under extreme circumstances.
Project intro slides: PPT
Project ideas & proposal description slides: PPT PDF
Lecture 1: PPT
(updated - new assignment due date)
Lecture 2: PPT PDF
Lecture 3: PPT PDF
Lecture 4: PPT PDF
Lecture 5: PPT PDF
Lecture 6: PPT PDF
Lecture 7: PPT PDF
Lecture 8: PPT PDF (updated: including cufftDestroy)
Lecture 9: PPT PDF (updated: cufftDestroy, batch issues, new due date)
Lecture 10: PPT PDF
Homework 1: Text Code (text updated: new performance estimates) (code updated: bugfix in block calculation)
Homework 2: Text & Code
Homework 3: Text Code (ver. 2 - text revised 4/24, 12:22 AM)
The CUDA Handbook: A Comprehensive Guide to GPU Programming is
recommended but not required. The book is a little more advanced than
other CUDA books and might not be very approachable at first, but by
the end of the course you should find it to be a valuable reference
for both your project as well as any future GPU programming you
find yourself doing.
the author's site for a discount.
CUDA C Programming Guide
List of NVIDIA GPUs
Mapping from GPU name to Compute Capability
|Less useful, but cool resources:||
NVIDIA's Parallel Forall Blog
Videos from last several years of NVIDIA's conference on CUDA
How to Write Code the Compiler Can Actually Optimize (2015)
Excellent CPU optimization manuals
What Every Programmer Should Know About Memory