May 2022
Intermediate to advanced
580 pages
18h 32m
English
This chapter introduces key concepts of the thread organization and thread-to-data mapping in CUDA. It first gives an overview of the multidimensional organization of CUDA threads, blocks, and grids. It then elaborates on the use of thread indexes and block indexes to map threads to different parts of the data, which is illustrated with a two-dimensional (2D) image color-to-grayscale conversion example and a 2D image blur example. The chapter concludes with a matrix multiplication example that will be used extensively in later parts of the book.
Kernel execution configuration parameters; multidimensional arrays; multidimensional grids; linearization; multidimensional blocks; row-major layout; ...
Read now
Unlock full access