Skip to content

cuDNN SDPA DTensor test: gate on a real CUDA device - #15582

Merged
danielhanchen merged 1 commit into
mainfrom
ci-cudnn-sdpa-real-cuda-gate
Oct 27, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-cudnn-sdpa-real-cuda-gate

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe fails on main again (Repo tests (CPU, studio), e.g. job 122253474793 on #15556):

these skip guards read a probe tests/_zoo_aggressive_cuda_spoof.py patches to True process-wide ...
    test_cudnn_sdpa_grad_layout_dtensor.py:73: torch.cuda.is_available()

#15445 added test_context_parallel_sdpa_backward_with_the_grad_layout_wrapper with @pytest.mark.skipif(not torch.cuda.is_available(), ...). That is the probe the CUDA spoof patches to True, so on a CPU-only runner sharing a session with tests/version_compat or tests/vllm_compat the test can un-skip. The guard test is right; the new test's skip condition should read has_real_cuda() like the rest of the suite (same fix as #15516). The cuDNN change itself is unaffected.

Verification (local):

  • tests/python/test_accelerator_skip_guards.py: main 1 failed, 23 passed; this branch 24 passed.
  • has_real_cuda() is True on a real GPU host, so the test still runs where it is meant to.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T17:44:47.497649Z 280c642 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 280c642969

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit b3c7886 into main Oct 27, 2026
0 of 15 checks passed
@danielhanchen
danielhanchen deleted the ci-cudnn-sdpa-real-cuda-gate branch October 27, 2026 17:49
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