Book description
CUDA Fortran for Scientists and Engineers: Best Practices for Efficient CUDA Fortran Programming shows how high-performance application developers can leverage the power of GPUs using Fortran, the familiar language of scientific computing and supercomputer performance benchmarking. The authors presume no prior parallel computing experience, and cover the basics along with best practices for efficient GPU computing using CUDA Fortran. In order to add CUDA Fortran to existing Fortran codes, they explain how to understand the target GPU architecture, identify computationally-intensive parts of the code, and modify the code to manage the data and parallelism and optimize performance – all in Fortran, without having to rewrite in another language. Each concept is illustrated with actual examples so you can immediately evaluate the performance of your code in comparison. This second edition provides much needed updates on how to efficiently program GPUs in CUDA Fortran. It can be used either as a tutorial on GPU programming in CUDA Fortran as well as a reference text.
- Presents optimization strategies for current hardware, including Hopper generation GPUs
- Includes discussions of new language and hardware features, including managed memory, tensor cores, shuffle instructions, new multi-GPU paradigms
- Offers resources and strategies for porting large codes to GPUs, including language features as well as library use
Table of contents
- Cover image
- Title page
- Table of Contents
- Copyright
- Dedication
- Preface to the Second Edition
- Preface to the First Edition
- Acknowledgments
-
Part 1: CUDA Fortran programming
- Chapter 1: Introduction
- Chapter 2: Correctness, accuracy, and debugging
- Chapter 3: Performance measurement and metrics
- Chapter 4: Synchronization
- Chapter 5: Optimization
- Chapter 6: Porting tips and techniques
- Chapter 7: Interfacing with CUDA C code and CUDA libraries
- Chapter 8: Multi-GPU programming
-
Part 2: Case studies
- Chapter 9: Monte Carlo method
- Chapter 10: Finite difference method
- Chapter 11: Applications of the fast Fourier transform
-
Chapter 12: Ray tracing
- Abstract
- 12.1. Generating an image file
- 12.2. Vectors in CUDA Fortran
- 12.3. Rays, a simple camera, and background
- 12.4. Adding a sphere
- 12.5. Surface normals and multiple objects
- 12.6. Antialiasing
- 12.7. Material types
- 12.8. Positionable camera
- 12.9. Defocus blur
- 12.10. Where next?
- 12.11. Triangles
- 12.12. Lights
- 12.13. Textures
- References
- Part 3: Appendices
Product information
- Title: CUDA Fortran for Scientists and Engineers, 2nd Edition
- Author(s):
- Release date: July 2024
- Publisher(s): Morgan Kaufmann
- ISBN: 9780443219764
You might also like
book
Modern Fortran
Using Fortran, early and accurate forecasts for hurricanes and other major storms have saved thousands of …
book
The CUDA Handbook: A Comprehensive Guide to GPU Programming
begins where CUDA by Example (Addison-Wesley, 2011) leaves off, discussing CUDA hardware and software in greater …
book
CUDA Programming
If you need to learn CUDA but don't have experience with parallel computing, CUDA Programming: A …
book
Programming Massively Parallel Processors, 4th Edition
Programming Massively Parallel Processors: A Hands-on Approach shows both students and professionals alike the basic concepts …