Skip to content

Commit

Permalink
cleanups following bool-to-enum pr
Browse files Browse the repository at this point in the history
  • Loading branch information
elstehle committed Feb 6, 2025
1 parent dd586a2 commit 42228b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cub/cub/device/dispatch/dispatch_adjacent_difference.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct DispatchAdjacentDifference

auto first_tile_previous = reinterpret_cast<InputT*>(allocations[0]);

_CCCL_IF_CONSTEXPR (AliasOpt == MayAlias::Yes)
if constexpr (AliasOpt == MayAlias::Yes)
{
using AgentDifferenceInitT =
detail::adjacent_difference::AgentDifferenceInit<InputIteratorT, InputT, OffsetT, ReadOpt == ReadOption::Left>;
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/device/dispatch/dispatch_common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ enum class SortOrder
// Options for specifying the behavior of the stream compaction algorithm.
enum class SelectImpl
{
// Stream compaction, discarding rejected items. It's guaranteed that memory of input and output are disjoint.
// Stream compaction, discarding rejected items. It's required that memory of input and output are disjoint.
Select,
// Stream compaction, discarding rejected items. Memory of the input may be identical to the memory of the output.
SelectPotentiallyInPlace,
// Partition, keeping rejected items. It's guaranteed that memory of input and output are disjoint.
// Partition, keeping rejected items. It's required that memory of input and output are disjoint.
Partition
};

Expand Down

0 comments on commit 42228b6

Please sign in to comment.