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
{{ message }}
Repository navigation
test(cuda.core): guard nanosleep tests on SM60 - #3626
Reviewing files that changed from the base of the PR and between dfabb0c and 1588c56.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Tests
VMM test coverage now skips nanosleep-dependent checks on GPUs older than Volta, where the required hardware capability is unavailable. This keeps test results aligned with supported device features.
Two VMM tests now skip when the device compute-capability major is below 7. The skip message states that __nanosleep requires Volta (sm70).
Changes: VMM test compatibility
Layer / File(s)
Summary
Guard nanosleep test launches cuda_core/tests/test_memory.py
test_vmm_allocate_zero_size and test_vmm_close_synchronizes_recorded_streams skip on devices with compute-capability major below 7.
Suggested reviewers:andy-jost, juenglin
Change: Other
Merge Risk: Minimal · previous review dfabb
This PR makes two VMM tests skip on GPUs older than Volta, where __nanosleep is not available. It affects only the test suite and has no production impact. The change is ready to merge, apart from the PR metadata check that is still failing.
Security architecture risk: Minimal · up to dfabb
The tests now skip GPUs that cannot run the nanosleep kernel. The change is confined to test eligibility and does not change how applications use CUDA VMM.
Finishing Touches
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between d1fc8a8 and dfabb0c.
Files selected for processing: 1
cuda_core/tests/test_memory.py
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
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
cuda.coreEverything related to the cuda.core module
1 participant
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.
Description
This is to fix internal bug 7109362.
Skip the two VMM tests that use NanosleepKernel on devices below SM70, where __nanosleep is unavailable.
Validation with cuda.core 1.3.0 and cuda.bindings 12.9.8:
Pre-commit checks passed.