July 2024
Intermediate to advanced
436 pages
10h 46m
English
After a short discussion of the history of parallel computation on graphics processing units, or GPUs, this chapter goes through a sequence of simple examples that illustrate the fundamental aspects of computation on GPUs using CUDA Fortran. The hybrid nature of CUDA Fortran programming is illustrated, which contains both host code that is run on the CPU and device code that is executed on the GPU. How to determine hardware features and capabilities from within CUDA Fortran code is presented, as are error handling, compilation of CUDA Fortran code, and system management.
Data parallelism; Hybrid computation; Host and device code; Kernel; Execution configuration; Compute capability; Error handling; Compilation; ...
Read now
Unlock full access