Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memcheck read error in compound segmented reduce (#12722)
Fixes an out-of-bounds memory read in the compound segmented reduction logic. The number of segments was computed incorrectly causing an extra read passed the end of the valid-counts vector. This was found by running compute-sanitizer test on the reductions gtests as follows: ``` compute-sanitizer --tool memcheck --demangle full gtests/REDUCTIONS_TEST --rmm_mode=cuda ``` The number of segments is 1 less than the number of offsets. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) URL: #12722
- Loading branch information