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

[BUG] Fix illegal memory access in linalg::reduction #2592

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

enp1s0
Copy link
Member

@enp1s0 enp1s0 commented Feb 24, 2025

Illegal memory access occurs when calling mean for a large matrix, specifically, when extent(0) * extent(1) exceeds INT_MAX. This PR fixes it.

Although I think it is safer to use uint64_t or size_t than IdxType as the index type in the kernel, I follow the coalescedReduction kernels.

@enp1s0 enp1s0 requested a review from a team as a code owner February 24, 2025 09:08
@enp1s0 enp1s0 self-assigned this Feb 24, 2025
@github-actions github-actions bot added the cpp label Feb 24, 2025
@enp1s0 enp1s0 added bug Something isn't working non-breaking Non-breaking change and removed cpp labels Feb 24, 2025
Copy link
Contributor

@lowener lowener left a comment

Choose a reason for hiding this comment

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

lgtm

@cjnolet
Copy link
Member

cjnolet commented Feb 25, 2025

/merge

@rapids-bot rapids-bot bot merged commit cb6fe7c into rapidsai:branch-25.04 Feb 25, 2025
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

3 participants