Appendix B

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

This chapter demonstrates how to leverage the Thrust parallel template library to implement high-performance ...

Get Programming Massively Parallel Processors, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.