GPU Programming With OpenMP 5.0
Watch the youtube video available here. The video gives an introduction to GPU Programming using OpenMP 5.0.
Google Colaboratory provides free GPU access and is used as the programming platform in the video.
The video also points out few mistakes which first-time users may make. Please watch the video before the workshop day and get ready for the lab session.
programs/
folder
The programs given in the video are available in the folder programs.
tutorials/
folder
-
The commands used in the video lecture are available in
Commands_Used_In_Video.md
. -
The presentation used in the video is available as
OpenMP GPU Programming with Google Colab.pdf
. -
The possible Linux commands which may be useful during lab session are marked with yellow color in the PDF file
linux_commands.pdf
. A subset of yellow-colored commands will be required for the lab session.
Examples_FN/
folder
Example OpenMP
and MPI
programs to try out in the forenoon lab session.
Examples_AN/
folder
Example OpenMP GPU
programs to try out in the afternoon lab session. See Examples_AN/README.md
for instructions on how to compile the examples.
Useful Online Resources
-
The
book
has detailed explanation of OpenMP 5.0 constructs with examples. -
The
presentation
compares OpenMP on CPU and GPU. It also explains how to write efficient OpenMP programs for GPUs. -
Click for FN Session and AN Session recorded lectures.
Matrix Multiplication
Examples
- The Matrix multiplication examples include serial program, different loop permutation and tiling for multi-core CPUs, CUDA and OpenMP 5.0 program for Nvidia GPUs.