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 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.