Repository navigation
test(cuda.core): assert host-located graph allocations are unsupported #3662
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
Open
mdboom
wants to merge
4
commits into
NVIDIA:main
Choose a base branch
from
mdboom:issue3588
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4f9be79
test(cuda.core): run test_alloc_memory_type_host and accept the drive…
mdboom 0147a44
test(cuda.core): drop the stale GraphMemoryType.HOST reference from a…
mdboom d1441a7
test(cuda.core): separate host graph-alloc rejection coverage from th…
mdboom 571ab8a
test(cuda.core): assert host graph allocations are unsupported; drop …
mdboom 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
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.
important: The test now permanently asserts that the driver rejects HOST graph allocation. A driver that starts accepting it will fail the suite.
Take a driver on CUDA 13.0 or later with mempool support that accepts HOST graph allocation.
g.allocate(...)succeeds,pytest.raisesfails, and the test gives no skip or round-trip coverage. The docstring tells maintainers to replace the test in that case. That makes a driver upgrade break CI. It also removes the earliermemory_typeanddptrround-trip coverage.The PR objectives record this as intended, backed by reported probes on CUDA 13.0 through 13.5. The linked issue
#3588asks for the feature requirement to be encoded in a skip condition. The test does not do that. The failure is a deliberate signal, but it blocks unrelated work. Check whether a failure on a newer driver should block CI. If it should not, accept a successful allocation and run the round trip on that path. Keep the NOT_SUPPORTED assertion for drivers that reject it.Based on learnings, do not replace test coverage by deleting it. Keep the round-trip assertions available for drivers that accept HOST allocation.
Source: Learnings