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

Fixes integer overflows in index computation when indexes approach numeric_limits<OffsetT>::max() #1419

Merged
merged 20 commits into from
Feb 21, 2024

Conversation

elstehle
Copy link
Collaborator

@elstehle elstehle commented Feb 21, 2024

note: this PR replaces #1355. #1355 was automatically closed because the targeted base branch was merged and I didn't manage to reopen the PR

Description

Closes #1334

I had tried various ways to prevent integer overflows, most of which were degrading performance for small types by as much as 20%. This fix keeps performance changes within noise.

Checklist

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

@elstehle elstehle merged commit 24423e5 into NVIDIA:main Feb 21, 2024
542 checks passed
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
2 participants