Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #9247: Prevent Numba Performance Warnings in cuDF #9320

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

gmarkall
Copy link
Contributor

Numba 0.54 introduces performance warnings whenever a kernel is launched with low occupancy. Certain operations in cuDF can indirectly cause this warning to be emitted, for example DataFrame.iloc (which one would not expect to be particularly efficient anyway). This message could be disconcerting for users and appear in a lot of workflows; therefore, this commit configures Numba 0.54 at cuDF import time to suppress the low occupancy warning.

Fixes #9247.

There has been some discussion about whether this needs to be a hotfix, so I'm opening this PR initially targeted at 21.10 accordingly - cc @quasiben @shwina @JohnZed.

Numba 0.54 introduces performance warnings whenever a kernel is launched
with low occupancy. Certain operations in cuDF can indirectly cause this
warning to be emitted, for example `DataFrame.iloc` (which one would not
expect to be particularly efficient anyway). This message could be
disconcerting for users and appear in a lot of workflows; therefore,
this commit configures Numba at cuDF import time to suppress the low
occupancy warning.

Fixes rapidsai#9247.
@gmarkall gmarkall requested a review from a team as a code owner September 28, 2021 08:43
@github-actions github-actions bot added the Python Affects Python cuDF API. label Sep 28, 2021
@codecov
Copy link

codecov bot commented Sep 28, 2021

Codecov Report

Merging #9320 (3aed7a1) into branch-21.10 (0b89459) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 3aed7a1 differs from pull request most recent head ccd02cf. Consider uploading reports for the commit ccd02cf to get more accurate results
Impacted file tree graph

@@               Coverage Diff                @@
##           branch-21.10    #9320      +/-   ##
================================================
- Coverage         10.80%   10.79%   -0.01%     
================================================
  Files               116      116              
  Lines             19321    19326       +5     
================================================
  Hits               2087     2087              
- Misses            17234    17239       +5     
Impacted Files Coverage Δ
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b89459...ccd02cf. Read the comment docs.

@shwina
Copy link
Contributor

shwina commented Sep 28, 2021

rerun tests

@JohnZed
Copy link
Contributor

JohnZed commented Sep 28, 2021

I think targeting 21.10 is a good idea, given that this will often be a confusing warning that the user can't do anything about (for built in cudf operations). Thanks for opening it.

@gmarkall
Copy link
Contributor Author

gmarkall commented Oct 5, 2021

rerun tests

@ajschmidt8 ajschmidt8 added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants