THRUST: a productivity-oriented library for CUDA
Nathan Bell, Jared Hoberock and Chris Rodrigues
Abstract
This chapter introduces the Thrust library for CUDA programming. The library supports type-generic functions in C++. This chapter uses practical code examples to demonstrate the utility, portability, and productivity advantage of the library.
Keywords
generic programming; template; C++; Thrust; portability; algorithm building blocks
Chapter Outline
B.1 Background 475
B.2 Motivation 477
B.5 Benefit of Abstraction 484
B.7 Exercises 491
References 491
This chapter demonstrates how to leverage the Thrust parallel template library to implement high-performance ...
Get Programming Massively Parallel Processors, 3rd 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.