Repository navigation
Use ptxcompiler to patch Numba at runtime to support CUDA enhanced compatibility. #9687
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
Changes from 11 commits
e3ce7cb
7f5c4b9
c06cda2
3438bdd
61ff5f2
17287cb
97c6946
95963f5
9c66ae3
9aebb54
5415889
9eb1579
b192ab9
e63b0a9
9af660b
74a6c79
3675c0c
6113dd7
6a8a8bb
2334d95
8455c60
f8019de
65da07d
6279f6e
c741e1d
69dca77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,7 @@ requirements: | |
| - nvtx >=0.2.1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't you need to increase the numba pin in this file as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed! |
||
| - packaging | ||
| - cachetools | ||
| - ptxcompiler # CUDA enhanced compatibility. See https://github.com/rapidsai/ptxcompiler | ||
|
shwina marked this conversation as resolved.
Resolved
shwina marked this conversation as resolved.
Resolved
|
||
|
|
||
| test: # [linux64] | ||
| requires: # [linux64] | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -101,10 +101,17 @@ | |||||||||||
| from cudf.core.tools.datetimes import date_range | ||||||||||||
| from cudf.utils.dtypes import _NA_REP | ||||||||||||
| from cudf.utils.utils import set_allocator | ||||||||||||
| from ptxcompiler.patch import patch_numba_codegen_if_needed | ||||||||||||
|
shwina marked this conversation as resolved.
Resolved
|
||||||||||||
|
|
||||||||||||
| cuda.set_memory_manager(rmm.RMMNumbaManager) | ||||||||||||
| cupy.cuda.set_allocator(rmm.rmm_cupy_allocator) | ||||||||||||
|
|
||||||||||||
| # Patch Numba to support CUDA enhanced compatibility. | ||||||||||||
| # See https://github.com/rapidsai/ptxcompiler for | ||||||||||||
| # details. | ||||||||||||
| patch_numba_codegen_if_needed() | ||||||||||||
|
shwina marked this conversation as resolved.
Resolved
|
||||||||||||
| del patch_numba_codegen_if_needed | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we delete this since it moved into the |
||||||||||||
|
|
||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed as added above
Suggested change
|
||||||||||||
| try: | ||||||||||||
| # Numba 0.54: Disable low occupancy warnings | ||||||||||||
| numba_config.CUDA_LOW_OCCUPANCY_WARNINGS = 0 | ||||||||||||
|
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.