Skip to content

Commit

Permalink
[CUB/docs] Add missing closing braces to BlockReduce kernel example…
Browse files Browse the repository at this point in the history
…s in CUB docs. (#3916)
  • Loading branch information
brycelelbach authored Feb 23, 2025
1 parent 8c9b0a9 commit 9348b8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cub/cub/block/block_reduce.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ enum BlockReduceAlgorithm
//!
//! // Compute the block-wide sum for thread0
//! int aggregate = BlockReduce(temp_storage).Sum(thread_data);
//! }
//!
//! Re-using dynamically allocating shared memory
//! +++++++++++++++++++++++++++++++++++++++++++++
Expand Down Expand Up @@ -336,6 +337,7 @@ public:
//!
//! // Compute the block-wide max for thread0
//! int aggregate = BlockReduce(temp_storage).Reduce(thread_data, cuda::maximum<>{});
//! }
//!
//! @endrst
//!
Expand Down Expand Up @@ -440,6 +442,7 @@ public:
//!
//! // Compute the block-wide max for thread0
//! int aggregate = BlockReduce(temp_storage).Reduce(thread_data, cuda::maximum<>{}, num_valid);
//! }
//!
//! @endrst
//!
Expand Down Expand Up @@ -504,6 +507,7 @@ public:
//!
//! // Compute the block-wide sum for thread0
//! int aggregate = BlockReduce(temp_storage).Sum(thread_data);
//! }
//!
//! @endrst
//!
Expand Down Expand Up @@ -547,6 +551,7 @@ public:
//!
//! // Compute the block-wide sum for thread0
//! int aggregate = BlockReduce(temp_storage).Sum(thread_data);
//! }
//!
//! @endrst
//!
Expand Down Expand Up @@ -596,6 +601,7 @@ public:
//!
//! // Compute the block-wide sum for thread0
//! int aggregate = BlockReduce(temp_storage).Sum(thread_data, num_valid);
//! }
//!
//! @endrst
//!
Expand Down

0 comments on commit 9348b8f

Please sign in to comment.