Skip to content

Commit

Permalink
[skip ci] Add example godbolt link. (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhemstad authored Oct 3, 2023
1 parent da83b37 commit 9dff8d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ The sum of each block is then reduced to a single value using an atomic add via

It then shows how the same reduction can be done using Thrust's `reduce` algorithm and compares the results.

[Try it live on Godbolt!](https://godbolt.org/z/x4G73af9a)

```cpp
#include <thrust/device_vector.h>
#include <cub/block/block_reduce.cuh>
Expand Down

0 comments on commit 9dff8d4

Please sign in to comment.