-
Notifications
You must be signed in to change notification settings - Fork 329
Upgrade the cuda-core version to ~1.1.0 #2716
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
cuda-core~=1.1.0means the effective range is>=1.1.0,<1.2.0. Do we want it this restrictive?WDYT about specifying
cuda-core~=1.1instead, with effective range>=1.1,<2.0?PEP 440 explicitly makes the number of version segments significant. CUDA Core promises backward-compatible minor releases and breaking changes only at major boundaries in cuda_core/docs/source/support.rst. It even already has 1.2.0 notes deferring an API removal until 2.0 for precisely that reason: cuda_core/docs/source/release/1.2.0-notes.rst.
Concrete outcomes:
~=1.1.0rejects it, potentially causing another downgrade or conflict;~=1.1accepts it.~=1.1still rejects it, matching the documented breaking-change boundary.~=1.0combined with PR 2716's~=1.1.0intersects only at 1.1.x. Combined with~=1.1, it permits every compatible release from 1.1 through the rest of 1.x.There is a separate lower-bound question. The PR branch and commit say "1.1.1", and cuda_core/docs/source/release/1.1.1-notes.rst says that release fixes compatibility with
cuda-bindings 13.4.0b1. If 1.1.1 is genuinely required, the best constraint is:Otherwise,
cuda-core~=1.1seems like the right expression.If you choose another expression, could you please add a comment with a terse rationale? (
~=1.1is sufficiently intuitive and doesn't really need 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.
I personally don't want to be this restrictive. This is just a conservative change that will allow newer cuda-core to install when we make the next cuda-python release without changing the status quo. And we /need/ to change something now because as it stands we are preventing the installation of the latest cuda-core.
Yes, but that is about API compatibility, not behavior. There is still the opportunity for runtime breakage because the versions of
cuda-bindingsandcuda-corehave never been tested together.The idea here (as told to me be @leofang) is that
cuda-pythonshould be a convenient way to getcuda-bindingsandcuda-corethat has been tested together. If we loosen the upper bound oncuda-core, that means some future version ofcuda-corethat was never tested could be installed.Personally, I think we can and should broaden it further, but that requires stepping back and making sure our CI continues to cover the new cases and combinations that would create. I would like to get this conservative "broken in the same way as the status quo" change out now in advance of the next cuda-python release.