Skip to content

test(cuda.core): guard nanosleep tests on SM60 - #3626

Open
rluo8 wants to merge 2 commits into
NVIDIA:mainfrom
rluo8:fix/vmm-tests-sm60
Open

rluo8 wants to merge 2 commits into
NVIDIA:mainfrom
rluo8:fix/vmm-tests-sm60

Conversation

@rluo8

@rluo8 rluo8 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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:

  • Linux P100 (SM60): reproduced all 3 original compilation failures; all 3 cases skip with the fix.
  • Linux H200 (SM90): 3 passed before and after.
  • Windows A100 (SM80): 3 passed before and after.
    Pre-commit checks passed.

Signed-off-by: Rui Luo <ruluo@nvidia.com>
@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Nov 26, 2026
@rluo8 rluo8 self-assigned this Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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
Recent review info

Run configuration

Commits

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.

@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant