Repository navigation
Fix min/max inclusive cudf::scan for strings column - #8705
Merged
rapids-bot[bot] merged 4 commits intoJul 12, 2021
Merged
Conversation
davidwendt
requested review from
harrism,
karthikeyann and
ttnghia
and removed request for
ttnghia
July 9, 2021 12:46
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8705 +/- ##
===============================================
Coverage ? 10.61%
===============================================
Files ? 109
Lines ? 18302
Branches ? 0
===============================================
Hits ? 1943
Misses ? 16359
Partials ? 0 Continue to review full report at Codecov.
|
revans2
approved these changes
Jul 9, 2021
revans2
left a comment
Contributor
There was a problem hiding this comment.
This fixed the issues I was seeing in the Spark code I was working on.
karthikeyann
approved these changes
Jul 12, 2021
harrism
approved these changes
Jul 12, 2021
Contributor
|
@gpucibot merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8684
A bug in
thrust::inclusive_scanreported here is passing invalid data to the AssociateOperator parameter provided bycudf::detail::inclusive_scan. The invalid data is likely initialized memory used by CUDA blocks/threads where the result is ignored. For regular fixed-width and primitive types this is harmless since operations just produce invalid results which are not used. Unfortunately, forstring_viewobjects, this invalid data will cause a crash since it normally requires de-referencing a device-memory pointer.This PR works around the issue by creating a custom scan-strings-operator wrapper for inclusive-scan. The operator accepts index values that are checked and used to access the individual rows. The underlying operator is then called to determine which index is returned. The end result is a vector of indices which is passed to a gather call to build the output column.
Also, added some additional scan gtests with 512 strings as described in issue #8684