CUDACasts Episode 16: Thrust Algorithms and Custom Operators

Originally published at: https://developer.nvidia.com/blog/cudacasts-episode-16-thrust-algorithms-custom-operators/

Continuing the Thrust mini-series (see Part 1), today’s episode of CUDACasts focuses on a few of the algorithms that make Thrust a flexible and powerful parallel programming library. You’ll also learn how to use functors, or C++ “function objects”, to customize how Thrust algorithms process data. In the next CUDACast in this Thrust mini-series, we’ll…

the "square" example has a small bug (see around 6:00) -- "init" should be initialized differently, namely by applying kernel to the first element.

You're absolutely right Vladimir. Thanks for catching the bug! I've added an annotation to the video to point out the bug and fix.