Skip to content

validation: CPU tests for CUDA shared contexts and borrowed streams - #16

Draft
cwschroeder wants to merge 1 commit into
validation/pr946-ef23b593from
test/cuda-shared-context-20261016
Draft

cwschroeder wants to merge 1 commit into
validation/pr946-ef23b593from
test/cuda-shared-context-20261016

Conversation

@cwschroeder

@cwschroeder cwschroeder commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Test-only follow-up for upstream #946 at ef23b593, based on main 46a08c18.

Candidate 05486a33 adds five permanent CPU callback tests and registers them in the existing CUDA test root. They cover the current primary on device 3, foreign-context refusal with balanced retain/release, no-current fallback to device 0, cleanup after an injected fallback switch error, and null/non-null borrowed stream forwarding. No runtime implementation changes.

The focused tests pass in Debug and Fast. Six separate temporary source mutants fail at runtime. Local test-cuda-host succeeds in all 39 steps (the incremental run executes 155/156 tests with one JPEG-related skip; other steps are cached). Whole-tree format, whitespace and lean comparison pass (517/517, zero new). Source review found no issue in the test delta. All six current-head checks pass on 05486a33, including the complete No GPU workflow (run 38928329054). This evidence is pinned to main 46a08c18; upstream ashhart#946 has since rebased to f3f959f1 on main 6ee828c2, which these runs do not qualify.

Callbacks do not open a CUDA library or device. The injected NotReady code tests error unwinding; it is not a claim about a real cuCtxSetCurrent error combination. This supplies no new non-primary/multi-GPU device or performance qualification. This PR is an isolated validation branch, not an upstream integration or deployment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant