Skip to content

[HOTFIX] strings_udf: use libcudf caching of character tables - #12343

Merged
raydouglass merged 1 commit into
NVIDIA:branch-22.12from
wence-:wence/fix/issue-12340
Dec 8, 2022
Merged

[HOTFIX] strings_udf: use libcudf caching of character tables#12343
raydouglass merged 1 commit into
NVIDIA:branch-22.12from
wence-:wence/fix/issue-12340

Conversation

@wence-

@wence- wence- commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

Description

We can't build the table pointers at import time, since that creates a
cuda context. Since libcudf caches these instances internally, just
call the functions directly.

Closes #12340.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@wence-
wence- requested a review from a team as a code owner December 8, 2022 15:48
@wence-
wence- requested review from charlesbluca and vyasr December 8, 2022 15:48
@github-actions github-actions Bot added the Python Affects Python cuDF API. label Dec 8, 2022
@wence-
wence- changed the base branch from branch-23.02 to branch-22.12 December 8, 2022 15:48
@wence- wence- added bug Something isn't working ! - Hotfix Hotfix is a bug that affects the majority of users for which there is no reasonable workaround non-breaking Non-breaking change labels Dec 8, 2022
We can't build the table pointers at import time, since that creates a
cuda context. Since libcudf caches these instances internally, just
call the functions directly.

Closes NVIDIA#12340.
@wence-
wence- force-pushed the wence/fix/issue-12340 branch from a56bf84 to 755c575 Compare December 8, 2022 15:51
@shwina shwina changed the title strings_udf: move initialisation of tables to runtime [HOTFIX] strings_udf: move initialisation of tables to runtime Dec 8, 2022
@wence- wence- changed the title [HOTFIX] strings_udf: move initialisation of tables to runtime strings_udf: use libcudf caching of character tables Dec 8, 2022
@wence- wence- changed the title strings_udf: use libcudf caching of character tables [HOTFIX] strings_udf: use libcudf caching of character tables Dec 8, 2022
@codecov

codecov Bot commented Dec 8, 2022

Copy link
Copy Markdown

Codecov Report

Base: 88.22% // Head: 88.23% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (be8599e) compared to base (f0ab6d5).
Patch has no changes to coverable lines.

❗ Current head be8599e differs from pull request most recent head 755c575. Consider uploading reports for the commit 755c575 to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-22.12   #12343      +/-   ##
================================================
+ Coverage         88.22%   88.23%   +0.01%     
================================================
  Files               137      137              
  Lines             22571    22568       -3     
================================================
  Hits              19914    19914              
+ Misses             2657     2654       -3     
Impacted Files Coverage Δ
python/strings_udf/strings_udf/lowering.py 86.19% <ø> (-0.20%) ⬇️
python/strings_udf/strings_udf/__init__.py 69.35% <0.00%> (-6.46%) ⬇️
python/cudf/cudf/core/dataframe.py 93.64% <0.00%> (+0.04%) ⬆️
python/cudf/cudf/core/column/string.py 88.65% <0.00%> (+0.12%) ⬆️
python/cudf/cudf/core/groupby/groupby.py 91.51% <0.00%> (+0.20%) ⬆️
python/cudf/cudf/core/tools/datetimes.py 84.49% <0.00%> (+0.30%) ⬆️
python/cudf/cudf/core/column/decimal.py 91.89% <0.00%> (+0.54%) ⬆️
python/cudf/cudf/core/column/lists.py 93.75% <0.00%> (+0.96%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@raydouglass
raydouglass merged commit b6dccb3 into NVIDIA:branch-22.12 Dec 8, 2022
@wence-
wence- deleted the wence/fix/issue-12340 branch December 8, 2022 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! - Hotfix Hotfix is a bug that affects the majority of users for which there is no reasonable workaround bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Don't allocate device data on import in strings_udf

3 participants