Skip to content

Commit

Permalink
Fix various typos in CUB documentation and comments. (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
brycelelbach committed Jul 3, 2024
1 parent e58c7e7 commit 07a0564
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions cub/cub/agent/agent_reduce_by_key.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ struct AgentReduceByKeyPolicy
*
* @tparam OffsetT
* Signed integer type for global offsets
*
* @tparam AccumT
* The type of intermediate accumulator (according to P2322R6)
*/
template <typename AgentReduceByKeyPolicyT,
typename KeysInputIteratorT,
Expand Down
2 changes: 2 additions & 0 deletions cub/cub/agent/agent_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ struct AgentScanPolicy : ScalingType
* @tparam OffsetT
* Signed integer type for global offsets
*
* @tparam AccumT
* The type of intermediate accumulator (according to P2322R6)
*/
template <typename AgentScanPolicyT,
typename InputIteratorT,
Expand Down
6 changes: 4 additions & 2 deletions cub/cub/agent/agent_scan_by_key.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ struct AgentScanByKeyPolicy
* @tparam OffsetT
* Signed integer type for global offsets
*
* @tparam AccumT
* The type of intermediate accumulator (according to P2322R6)
*/
template <typename AgentScanByKeyPolicyT,
typename KeysInputIteratorT,
Expand Down Expand Up @@ -235,7 +237,7 @@ struct AgentScanByKey
SizeValuePairT (&scan_items)[ITEMS_PER_THREAD],
SizeValuePairT& tile_aggregate,
TilePrefixCallbackT& prefix_op,
Int2Type<false> /* is_incclusive */)
Int2Type<false> /* is_inclusive */)
{
BlockScanT(storage.scan_storage.scan).ExclusiveScan(scan_items, scan_items, pair_scan_op, prefix_op);
tile_aggregate = prefix_op.GetBlockAggregate();
Expand Down Expand Up @@ -281,7 +283,7 @@ struct AgentScanByKey
_CCCL_DEVICE _CCCL_FORCEINLINE void
UnzipValues(AccumT (&values)[ITEMS_PER_THREAD], SizeValuePairT (&scan_items)[ITEMS_PER_THREAD])
{
// Zip values and segment_flags
// Unzip values and segment_flags
#pragma unroll
for (int ITEM = 0; ITEM < ITEMS_PER_THREAD; ++ITEM)
{
Expand Down
8 changes: 4 additions & 4 deletions cub/cub/block/block_discontinuity.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public:
//! // Collectively compute head and flags for discontinuities in the segment
//! int head_flags[4];
//! int tail_flags[4];
//! BlockDiscontinuity(temp_storage).FlagTails(
//! BlockDiscontinuity(temp_storage).FlagHeadsAndTails(
//! head_flags, tail_flags, thread_data, cub::Inequality());
//!
//! Suppose the set of input ``thread_data`` across the block of threads is
Expand Down Expand Up @@ -866,7 +866,7 @@ public:
//! // Collectively compute head and flags for discontinuities in the segment
//! int head_flags[4];
//! int tail_flags[4];
//! BlockDiscontinuity(temp_storage).FlagTails(
//! BlockDiscontinuity(temp_storage).FlagHeadsAndTails(
//! head_flags, tail_flags, tile_successor_item, thread_data, cub::Inequality());
//!
//! Suppose the set of input ``thread_data`` across the block of threads is
Expand Down Expand Up @@ -999,7 +999,7 @@ public:
//! // Collectively compute head and flags for discontinuities in the segment
//! int head_flags[4];
//! int tail_flags[4];
//! BlockDiscontinuity(temp_storage).FlagTails(
//! BlockDiscontinuity(temp_storage).FlagHeadsAndTails(
//! head_flags, tile_predecessor_item, tail_flags, tile_successor_item,
//! thread_data, cub::Inequality());
//!
Expand Down Expand Up @@ -1128,7 +1128,7 @@ public:
//! // Collectively compute head and flags for discontinuities in the segment
//! int head_flags[4];
//! int tail_flags[4];
//! BlockDiscontinuity(temp_storage).FlagTails(
//! BlockDiscontinuity(temp_storage).FlagHeadsAndTails(
//! head_flags, tile_predecessor_item, tail_flags, tile_successor_item,
//! thread_data, cub::Inequality());
//!
Expand Down
2 changes: 1 addition & 1 deletion cub/cub/device/dispatch/dispatch_scan_by_key.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CUB_NAMESPACE_BEGIN
*****************************************************************************/

/**
* @brief Scan kernel entry point (multi-block)
* @brief Scan by key kernel entry point (multi-block)
*
* @tparam ChainedPolicyT
* Chained tuning policy
Expand Down

0 comments on commit 07a0564

Please sign in to comment.