-
Notifications
You must be signed in to change notification settings - Fork 55
Drop experimental from cuda.core namespace imports
#676
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
Drop experimental from cuda.core namespace imports
#676
Conversation
|
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test |
experimental from cuda.core namespace imports
Greptile SummaryThis PR introduces a backward-compatible transition from Key Changes:
Implementation Quality:
Confidence Score: 5/5
Important Files Changed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (1)
-
numba_cuda/numba/cuda/dispatcher.py, line 44 (link)syntax: Missed import:
LaunchConfigstill imported fromcuda.core.experimental
8 files reviewed, 1 comment
|
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (2)
-
numba_cuda/numba/cuda/_compat.py, line 8-11 (link)logic: empty if/else blocks cause all imports from
_compatto fail - nothing is re-exported. Add imports in each branch: -
numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py, line 19 (link)style: inconsistent with other test files -
test_events.pyimportsDevicefrom_compatwhile this imports directly fromcuda.coreNote: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
11 files reviewed, 2 comments
|
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (4)
-
numba_cuda/numba/cuda/_compat.py, line 31-41 (link)logic:
ObjectCodeandLaunchConfigare missing from this compatibility module but are imported from it in several files (driver.py,dispatcher.py,nrt.py,test_module_callbacks.py,test_compiler.py). This will causeImportErrorat runtime. -
numba_cuda/numba/cuda/_compat.py, line 8-18 (link)logic:
ObjectCodeandLaunchConfigneed to be imported in both version branches since they're used by downstream modules. -
numba_cuda/numba/cuda/_compat.py, line 19-29 (link)logic:
ObjectCodeandLaunchConfigneed to be imported in both version branches since they're used by downstream modules. -
numba_cuda/numba/cuda/tests/cudadrv/test_cuda_driver.py, line 19 (link)logic: Importing
Devicedirectly fromcuda.corebypasses the version compatibility layer. This will break with cuda-core < 0.5.0 whereDeviceis only available incuda.core.experimental.
14 files reviewed, 4 comments
|
/ok to test |
|
/ok to test ec8d388 |
bdice
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me!
| Stream as ExperimentalStream, | ||
| Device as ExperimentalDevice, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could drop "Experimental" from these names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this, however there's some broader work to be done to disambiguate the cuda.core classes with the ones defined later in this file, so I'm going to leave it for a follow up for now.
Stopgap until NVIDIA/numba-cuda#676 is in. Authors: - Jim Crist-Harif (https://github.com/jcrist) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) - Bradley Dice (https://github.com/bdice) URL: #7629
…#7629) Stopgap until NVIDIA/numba-cuda#676 is in. Authors: - Jim Crist-Harif (https://github.com/jcrist) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) - Bradley Dice (https://github.com/bdice) URL: rapidsai#7629
- Add arch specific target support (NVIDIA#549) - chore: disable `locked` flag to bypass prefix-dev/pixi#5256 (NVIDIA#714) - ci: relock pixi (NVIDIA#712) - ci: remove redundant conda build in ci (NVIDIA#711) - chore(deps): bump numba-cuda version and relock pixi (NVIDIA#707) - Dropping bits in the old CI & Propagating recent changes from cuda-python (NVIDIA#683) - Fix `test_wheel_deps_wheels.sh` to actually uninstall `nvvm` and `nvrtc` packages for CUDA 13 (NVIDIA#701) - perf: remove some exception control flow and buffer-exception penalization for arrays (NVIDIA#700) - perf: let CAI fall through instead of calling from_cuda_array_interface (NVIDIA#694) - chore: perf lint (NVIDIA#697) - chore(deps): bump deps in pixi lockfile (NVIDIA#693) - fix: use freethreading-supported `_PySet_NextItemRef` where possible (NVIDIA#682) - Support python `3.14` (NVIDIA#599) - Remove customized address space tracking and address class emission in debug info (NVIDIA#669) - Drop `experimental` from cuda.core namespace imports (NVIDIA#676) - Remove dangling references to NUMBA_CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY (NVIDIA#675) - Use `rapidsai/sccache` in CI (NVIDIA#674) - chore(dev-deps): remove ipython and pyinstrument (NVIDIA#670) - Set up a new VM-based CI infrastructure (NVIDIA#604)
- Add arch specific target support (#549) - chore: disable `locked` flag to bypass prefix-dev/pixi#5256 (#714) - ci: relock pixi (#712) - ci: remove redundant conda build in ci (#711) - chore(deps): bump numba-cuda version and relock pixi (#707) - Dropping bits in the old CI & Propagating recent changes from cuda-python (#683) - Fix `test_wheel_deps_wheels.sh` to actually uninstall `nvvm` and `nvrtc` packages for CUDA 13 (#701) - perf: remove some exception control flow and buffer-exception penalization for arrays (#700) - perf: let CAI fall through instead of calling from_cuda_array_interface (#694) - chore: perf lint (#697) - chore(deps): bump deps in pixi lockfile (#693) - fix: use freethreading-supported `_PySet_NextItemRef` where possible (#682) - Support python `3.14` (#599) - Remove customized address space tracking and address class emission in debug info (#669) - Drop `experimental` from cuda.core namespace imports (#676) - Remove dangling references to NUMBA_CUDA_ENABLE_MINOR_VERSION_COMPATIBILITY (#675) - Use `rapidsai/sccache` in CI (#674) - chore(dev-deps): remove ipython and pyinstrument (#670) - Set up a new VM-based CI infrastructure (#604)
This PR drops the
experimentalpart of thecuda.corenamespace.