Skip to content

Conversation

@miscco
Copy link
Contributor

@miscco miscco commented Jan 7, 2026

We incorrectly used bit_ceil which gave us the next power of two not the number of bits we need to represent the number of elements. Use bit_width instead

Fixes #7073

We incorrectly used `bit_ceil` which gave us the next power of two not the number of bits we need to represent the number of elements.
Use `bit_width` instead

Fixes NVIDIA#7073
@miscco miscco requested a review from a team as a code owner January 7, 2026 08:04
@miscco miscco requested a review from wmaxey January 7, 2026 08:04
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 7, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 7, 2026
@miscco miscco requested a review from RAMitchell January 7, 2026 08:04
Copy link
Member

@leofang leofang left a comment

Choose a reason for hiding this comment

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

🙏

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

🥳 CI Workflow Results

🟩 Finished in 16h 58m: Pass: 100%/91 | Total: 20h 33m | Max: 47m 29s | Hits: 98%/218937

See results here.

@miscco miscco merged commit 1b37e20 into NVIDIA:main Jan 8, 2026
200 of 205 checks passed
@miscco miscco deleted the fix_feistel_bits branch January 8, 2026 08:05
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Jan 8, 2026
github-actions bot pushed a commit that referenced this pull request Jan 8, 2026
We incorrectly used `bit_ceil` which gave us the next power of two not the number of bits we need to represent the number of elements.
Use `bit_width` instead

Fixes #7073

(cherry picked from commit 1b37e20)
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Successfully created backport PR for branch/3.2.x:

miscco added a commit that referenced this pull request Jan 8, 2026
We incorrectly used `bit_ceil` which gave us the next power of two not the number of bits we need to represent the number of elements.
Use `bit_width` instead

Fixes #7073

(cherry picked from commit 1b37e20)

Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG]: UB in cuda::shuffle_iterator due to incorrect use of bit_ceil

4 participants