November 2016
Intermediate to advanced
576 pages
18h 22m
English
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 ...