
Chapter 2
Introduction to CUDA
Rapha¨el Couturier
Femto-ST Institute, University of Franche-Comte, France
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2 First example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Second example: using CUBLAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4 Third example: matrix-matrix multiplication . . . . . . . . . . . . . . . . . . . 18
2.5 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .