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] Stats kernels invalid access #2204

Open
tfeher opened this issue Feb 28, 2024 · 0 comments
Open

[BUG] Stats kernels invalid access #2204

tfeher opened this issue Feb 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tfeher
Copy link
Contributor

tfeher commented Feb 28, 2024

Describe the bug

Similar to #2183, the mean and stdev kernels have also potential out of bounds access

https://github.com/rapidsai/raft/blob/branch-24.04/cpp/include/raft/stats/detail/stddev.cuh#L48
https://github.com/rapidsai/raft/blob/branch-24.04/cpp/include/raft/stats/detail/mean.cuh#L46

Additionally the minmax kernel should be also checked, whether it has a similar problem.

Steps/Code to reproduce bug

Additional context

  • We have to add tests that cover edge cases so that such errors are not occuring
@tfeher tfeher added the bug Something isn't working label Feb 28, 2024
@mfoerste4 mfoerste4 self-assigned this Mar 12, 2024
rapids-bot bot pushed a commit that referenced this issue Mar 16, 2024
This PR addresses #2204 and #2205. 


* fixes illegal access / test coverage for mean row-wise kernel
* fixes illegal access / test coverage for stdev row-wise kernel
* modified sum kernels to utilize Kahan/Neumaier summation per thread, also increase load per thread to benefit from this

FYI, @tfeher

Authors:
  - Malte Förster (https://github.com/mfoerste4)

Approvers:
  - Tamas Bela Feher (https://github.com/tfeher)

URL: #2223
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants