CUDA dynamic parallelism
With special contributions from Juan Gómez-Luna
Abstract
This chapter introduces CUDA dynamic parallelism, an extension to the CUDA programming model that enables a CUDA kernel to create more thread grids by calling other kernels. Dynamic parallelism allows algorithms that dynamically discover new work to prepare and launch grids without burdening the host or resorting to complex software techniques. The chapter starts with a simple pattern that benefits from dynamic parallelism. It then uses two advanced examples, Bezier Curve calculation and Quad Tree construction, to illustrate some of the important subtleties and details that programmers will likely encounter when using dynamic parallelism in real applications. ...
Get Programming Massively Parallel Processors, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.