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

[FEA] Don't disable numba occupancy warnings globally #13351

Closed
brandon-b-miller opened this issue May 15, 2023 · 0 comments · Fixed by #13337
Closed

[FEA] Don't disable numba occupancy warnings globally #13351

brandon-b-miller opened this issue May 15, 2023 · 0 comments · Fixed by #13337
Assignees
Labels
feature request New feature or request non-breaking Non-breaking change numba Numba issue

Comments

@brandon-b-miller
Copy link
Contributor

We shouldn't disable numba occupancy warnings globally on cuDF import and instead use a contextmanager or something similar internally to squash warnings. This would let users see the warning if they encounter it in their environment, outside of cuDF's usage.

@brandon-b-miller brandon-b-miller added feature request New feature or request numba Numba issue non-breaking Non-breaking change labels May 15, 2023
@brandon-b-miller brandon-b-miller self-assigned this May 15, 2023
rapids-bot bot pushed a commit that referenced this issue May 23, 2023
Summary of changes:

- Removed some old code that is only used for `numba<0.54` which hasn't been supported for a while now.
- Removed some old code that is only used when `cubinlinker` is not present, which is has been a hard requirement for a while now as well. 
- Created a file `_numba.py` and moved into this file all of the machinery used to configure numba upon cuDF import. This includes functions for determining which toolkit version was used to build the PTX file our UDFs rely on as well as the functions for potentially putting numba into MVC mode if necessary.
- Created a file `_ptxcompiler.py` which vendors the driver/runtime version checking machinery from ptxcompiler in case we're in a cuda 12 environment that doesn't have it
- Changed the code to issue a warning in cuda 12+ MVC situations that the library will likely not work
- The version of the toolkit used to determine if MVC is required is now determined from the `cc=60` PTX file which is [always built](https://github.com/rapidsai/cudf/blob/branch-23.06/python/cudf/udf_cpp/CMakeLists.txt#L85-L87). This is to avoid needing to query the device compute capability through numba's `cuda` module. This needs to be avoided during numba's setup because if `numba.cuda` is imported before numba's config is modified, the config options will have no effect. 

Closes #13351
Closes #13339

Authors:
  - https://github.com/brandon-b-miller

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Bradley Dice (https://github.com/bdice)
  - Graham Markall (https://github.com/gmarkall)
  - Ashwin Srinath (https://github.com/shwina)

URL: #13337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request non-breaking Non-breaking change numba Numba issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant