Skip to content

Conversation

@griwes
Copy link
Contributor

@griwes griwes commented Jan 22, 2026

Description

#7007, introducing {lower,upper}_bound to CUB and c.parallel, made them return iterators in the output buffer; the idea was to be more consistent with the standard algorithms. However, the Thrust approach of returning indices is probably more useful, as the input range is already required to be random access.

Closes #7258

Checklist

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

@griwes griwes requested review from a team as code owners January 22, 2026 00:31
@griwes griwes requested a review from gevtushenko January 22, 2026 00:31
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 22, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 22, 2026
@griwes griwes enabled auto-merge (squash) January 22, 2026 01:14
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 16h 24m: Pass: 100%/93 | Total: 4d 20h | Max: 5h 28m | Hits: 74%/91833

See results here.

@griwes griwes merged commit 4ecbf81 into NVIDIA:main Jan 22, 2026
109 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Jan 22, 2026
@griwes griwes deleted the bug/binary-search-indices-not-iterators branch January 22, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Return indices rather than iterator from cub::DeviceFind::LowerBound/UpperBound

2 participants