“Courage will now be your best defence against the storm that is at hand-—that and such hope as I bring.” Gandalf the White
Exercises to the GPU programming course. Here you can practise what you have heard about during the lectures. The codes are hevily commented with points of interest and aditional information. Guide for the code is given in general_guide.
The exercises will be condensed into 5 sessions:
- hello world - test the instalation setup
- introduce error checking, device querry
- add mat - perform elementwise sum of two vectors and matrices
- introduce basic memory operation on GPU, kernell launch with 2D grid, timing of GPU code
- transpose mat - perform matrix transposition using different types of memory
- introduce memory operation with shared memory, show how texture memory is used, example of Instruction Level Paralelism