You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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#13351Closes#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
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.
The text was updated successfully, but these errors were encountered: