Skip to content

Skip the torchao blockwise GEMM CUDA case on a real CUDA probe - #15211

Merged
danielhanchen merged 1 commit into
mainfrom
ci-fp8-torchao-real-cuda
Oct 25, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-fp8-torchao-real-cuda

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

#15205 (FP8 block GEMM: route empty inputs to the Triton kernel) added a CUDA case to tests/test_fp8_torchao_import_route.py that skips on torch.cuda.is_available(). tests/python/test_accelerator_skip_guards.py::test_no_skip_guard_reads_a_spoofable_accelerator_probe rejects that, so Repo tests (CPU, studio) is red on unrelated PRs (for example #15204, base 3b2773c5):

test_fp8_torchao_import_route.py:188: torch.cuda.is_available()

tests/_zoo_aggressive_cuda_spoof.py patches torch.cuda.is_available() to True for the whole process, so on a CPU-only runner this skip stops skipping whenever it shares a session with tests/version_compat or tests/vllm_compat. The test is wrong here, not the kernel. It is the same fix #15194 made for test_norm_arch_warps.py.

Change

  • Skip on has_real_cuda() from tests/_shared/real_accelerator.py. The torchao_blockwise_gemm is None half of the condition is unchanged.

Verification

  • tests/python/test_accelerator_skip_guards.py: 1 failed, 23 passed on main, 24 passed with this change.
  • tests/test_fp8_torchao_import_route.py on CPU: 28 passed, 1 skipped. has_real_cuda() is True on a CUDA host (checked when Skip the norm warps CUDA case on a real CUDA probe #15194 landed), so the case still runs on GPU runners.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T06:25:38.282913Z 83535f5 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. 🎉

Reviewed commit: 83535f5f38

ℹ️ 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 6375906 into main Oct 25, 2026
0 of 14 checks passed
@danielhanchen
danielhanchen deleted the ci-fp8-torchao-real-cuda branch October 25, 2026 06:31
danielhanchen added a commit that referenced this pull request Oct 25, 2026
…5239)

## Summary

`Source lint` is red on main, and so on every PR (for example #15212 and
#15217). The step that fails is `Duplicate definitions (whole tree)`:

```
tests/test_fp8_torchao_import_route.py:13: has_real_cuda is imported twice from the same module (first at line 11)
```

#15211 and c993bf3 (skip the QAT MX and FP8 block GEMM GPU cases on the
recorded real CUDA) landed the same `from real_accelerator import
has_real_cuda` fix 18 minutes apart. Their import lines sit at different
spots, so git merged both without a conflict and left the name bound
twice. `scripts/lint_duplicate_definitions.py` exists to catch exactly
this merge damage.

## Change

- Drop the second import. Nothing else in the file changes.

## Verification

- `python scripts/lint_duplicate_definitions.py
tests/test_fp8_torchao_import_route.py`: on main `duplicate definitions
(1)` with exit 1. With this change: `clean: 1 file(s) checked` and exit
0.
- `tests/test_fp8_torchao_import_route.py` and
`tests/python/test_accelerator_skip_guards.py`: `52 passed, 1 skipped`.
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