Skip to Content
The CUDA Handbook: A Comprehensive Guide to GPU Programming
book

The CUDA Handbook: A Comprehensive Guide to GPU Programming

by Nicholas Wilt
June 2013
Intermediate to advanced
528 pages
13h 11m
English
Addison-Wesley Professional
Content preview from The CUDA Handbook: A Comprehensive Guide to GPU Programming

Chapter 12. Reduction

Reduction is a class of parallel algorithms that pass over O(N) input data and generate a O(1) result computed with a binary associative operator Image. Examples of such operations include minimum, maximum, sum, sum of squares, AND, OR, and the dot product of two vectors. Reduction is also an important primitive used as a subroutine in other operations, such as Scan (covered in the next chapter).

Unless the operator Image is extremely expensive to evaluate, reduction tends to be bandwidth-bound. Our treatment of reduction begins with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CUDA Programming

CUDA Programming

Shane Cook
Professional CUDA C Programming

Professional CUDA C Programming

John Cheng, Max Grossman, Ty McKercher

Publisher Resources

ISBN: 9780133261516Purchase book