Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add b200 policies for cub.device.partition.flagged,if,three_way #3617

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cub/cub/agent/agent_select_if.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ struct partition_distinct_output_t
rejected_iterator_t rejected_it;
};

template <typename OutputIterator>
struct is_partition_distinct_output_t : ::cuda::std::false_type
{};

template <typename SelectedOutputItT, typename RejectedOutputItT>
struct is_partition_distinct_output_t<partition_distinct_output_t<SelectedOutputItT, RejectedOutputItT>>
: ::cuda::std::true_type
{};

/**
* @brief AgentSelectIf implements a stateful abstraction of CUDA thread blocks for participating in
* device-wide selection
Expand Down
14 changes: 8 additions & 6 deletions cub/cub/device/dispatch/dispatch_select_if.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,14 @@ template <typename InputIteratorT,
typename EqualityOpT,
typename OffsetT,
bool KeepRejects,
bool MayAlias = false,
typename PolicyHub = detail::select::policy_hub<cub::detail::value_t<InputIteratorT>,
cub::detail::value_t<FlagsInputIteratorT>,
detail::select::per_partition_offset_t,
MayAlias,
KeepRejects>>
bool MayAlias = false,
typename PolicyHub =
detail::select::policy_hub<detail::value_t<InputIteratorT>,
detail::value_t<FlagsInputIteratorT>,
OffsetT,
detail::select::is_partition_distinct_output_t<SelectedOutputIteratorT>::value,
MayAlias,
KeepRejects>>
struct DispatchSelectIf
{
/******************************************************************************
Expand Down
Loading