-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid-device-fn error in cudf::strings::replace_re with multipl…
…e regex's (#7336) Found errors when testing libcudf built with gcc-9 and nvcc 11.1. ``` STRINGS_TEST : StringsReplaceTests.ReplaceMultiRegexTest MERGE_TEST : MergeStringTest/8.Merge2StringKeyColumns (with BOOL8 column types only) PARTITIONING_TEST : RoundRobinTest/8.RoundRobin (tests with BOOL8 column types only) ``` The strings test cause an `invalid-device-function` error. The code for `cudf::strings::replace_re` that accepts multiple regex's was fixed to better manage the device memory holding the regex structures. The error occurred when cleaning up the temporary memory. The other two tests failed because the iterator used for generating the expected data (in CPU code) was producing the wrong results. This may be a gcc optimization bug since adding a printf cleared the error. I was able to recode the iterator's functor so it would succeed on both gcc9 and gcc7. Authors: - David (@davidwendt) Approvers: - @nvdbaranec - Paul Taylor (@trxcllnt) URL: #7336
- Loading branch information
1 parent
efcd52d
commit da3ab29
Showing
3 changed files
with
57 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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