Skip to content

Fix alignment logic in CUB scratch size logic#41043

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_900684454
Open

Fix alignment logic in CUB scratch size logic#41043
copybara-service[bot] wants to merge 1 commit intomainfrom
test_900684454

Conversation

@copybara-service
Copy link
Copy Markdown

Fix alignment logic in CUB scratch size logic

The previous logic added 4 bytes even when the size was already aligned to a 4-byte boundary. This CL fixes it to use standard bitwise alignment, avoiding unnecessary padding.

The previous logic added 4 bytes even when the size was already aligned to a 4-byte boundary. This CL fixes it to use standard bitwise alignment, avoiding unnecessary padding.

PiperOrigin-RevId: 900684454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant