Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

DeviceRunLengthEncode::Encode returns wrong results #127

Closed
dumerrill opened this issue Feb 8, 2018 · 1 comment
Closed

DeviceRunLengthEncode::Encode returns wrong results #127

dumerrill opened this issue Feb 8, 2018 · 1 comment

Comments

@dumerrill
Copy link
Contributor

The attached sample code compiled as
nvcc -std=c++11 -o cub_bug cub_bug.cu

with cub 1.7.4 results in incorrect count for the last element

Mismatching count for key 130882: 1 vs. 2

cub_bug.txt

dumerrill referenced this issue Feb 8, 2018
https://github.com/NVlabs/cub/issues/127 

Applied reduction-op instead of RLE-scan-op for last item, so was always
(insead of conditionally) folding in the last block's prefix count.
@dumerrill
Copy link
Contributor Author

Fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant