Skip to content

[CUB] Refactor DeviceSelect::UniqueByKey to always take an environment - #9459

Merged
bernhardmgruber merged 2 commits into
mainfrom
device_select_unique_by_key
Jul 15, 2026
Merged

bernhardmgruber merged 2 commits into
mainfrom
device_select_unique_by_key

Conversation

@miscco

@miscco miscco commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Jun 15, 2026
@miscco miscco changed the title device select unique by key [CUB] Refactor DeviceSelect::UniqueByKey to always take an environment Jun 15, 2026
@miscco
miscco force-pushed the device_select_unique_by_key branch 3 times, most recently from 944eaa1 to d1399f7 Compare June 15, 2026 09:05
@miscco
miscco force-pushed the device_select_unique_by_key branch 2 times, most recently from e820f42 to e6e6270 Compare June 15, 2026 12:38
@miscco
miscco force-pushed the device_select_unique_by_key branch from e6e6270 to 1e3a4b8 Compare June 16, 2026 10:49
@miscco
miscco force-pushed the device_select_unique_by_key branch from 1e3a4b8 to d70eeab Compare June 22, 2026 10:17
@copy-pr-bot

copy-pr-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@miscco
miscco marked this pull request as ready for review June 22, 2026 10:18
@miscco
miscco requested a review from a team as a code owner June 22, 2026 10:18
@miscco
miscco requested a review from pauleonix June 22, 2026 10:18
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Jun 22, 2026
@miscco
miscco force-pushed the device_select_unique_by_key branch from d70eeab to 84181c6 Compare June 22, 2026 11:15
@miscco
miscco force-pushed the device_select_unique_by_key branch from 84181c6 to 069d34a Compare June 22, 2026 11:20
@github-actions

This comment has been minimized.

@miscco
miscco force-pushed the device_select_unique_by_key branch from 069d34a to c9e9e91 Compare June 23, 2026 07:21
@miscco
miscco requested a review from elstehle July 2, 2026 09:17
@miscco
miscco force-pushed the device_select_unique_by_key branch from b863b89 to 921c6bf Compare July 2, 2026 09:17
@github-actions

This comment has been minimized.

@miscco
miscco force-pushed the device_select_unique_by_key branch from 921c6bf to 8949f65 Compare July 2, 2026 18:49
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@miscco
miscco force-pushed the device_select_unique_by_key branch from 8949f65 to c907d0f Compare July 3, 2026 07:22
@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber force-pushed the device_select_unique_by_key branch 2 times, most recently from c57a5fb to 6f80532 Compare July 9, 2026 12:25
@bernhardmgruber

Copy link
Copy Markdown
Contributor

I rebased and reverted the reordering of functions to minimize the diff.

@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber force-pushed the device_select_unique_by_key branch from 6f80532 to 81926e4 Compare July 15, 2026 11:53
We want to be able to pass tunings even to the APIs that currently only take a stream.

Refactor so that we can pass an arbitrary environment to those APIs that take user provided memory
@bernhardmgruber
bernhardmgruber force-pushed the device_select_unique_by_key branch from 81926e4 to 1aa8446 Compare July 15, 2026 12:39
@bernhardmgruber

Copy link
Copy Markdown
Contributor

I rebased because the Thrust test split was merged.

Comment thread thrust/testing/unique_by_key.cu Outdated
Comment on lines +470 to +471
template <typename T, typename U>
_CCCL_HOST_DEVICE bool operator()(::cuda::std::pair<T, U> const& lhs, ::cuda::std::pair<T, U> const& rhs) const

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: I believe this should not be needed with the introduction of wrapped_function below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try, I'll push a commit

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 3h 35m: Pass: 100%/344 | Total: 12d 23h | Max: 2h 33m | Hits: 35%/1166812

See results here.

@bernhardmgruber
bernhardmgruber merged commit 3c6a002 into main Jul 15, 2026
719 of 726 checks passed
@bernhardmgruber
bernhardmgruber deleted the device_select_unique_by_key branch July 15, 2026 17:08
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Jul 15, 2026
davebayer pushed a commit to davebayer/cccl that referenced this pull request Aug 4, 2026
…ent (NVIDIA#9459)

We want to be able to pass tunings even to the APIs that currently only take a stream.

Refactor so that we can pass an arbitrary environment to those APIs that take user provided memory

Co-authored-by: Bernhard Manfred Gruber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants