Repository navigation
[FlyDSL] [JIT] Fix Windows build arguments and optional imports - #6589
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
🟡 Changes recommended
Dtype architecture detection bypasses the required shared runtime helper and its validation.
1 open finding
What changed in this PR
Extracts backend-neutral Windows JIT and optional-import fixes from #4340 while preserving existing cache transactions.
Changes:
- Fix Windows generator arguments and honor positive
MAX_JOBSoverrides. - Normalize RDNA processor counts and add architecture tests.
- Guard optional imports and dtype detection without a HIP device.
| File | Description |
|---|---|
| op_tests/test_mha_optional_flydsl.py | Tests optional FlyDSL dispatch and fallback. |
| op_tests/test_jit_cache_transaction.py | Tests Windows arguments, worker limits, and portable permissions. |
| op_tests/test_dtype_parser.py | Tests deferred native-enum imports. |
| op_tests/test_build_targets_architecture.py | Tests architecture defaults and processor counts. |
| aiter/utility/dtypes.py | Defers enum imports and guards device detection. |
| aiter/ops/mha.py | Gates FlyDSL paths on availability. |
| aiter/jit/utils/jit_cache.py | Preserves Windows generator argument boundaries. |
| aiter/jit/utils/cpp_extension.py | Removes explicit worker-count clamping. |
| aiter/jit/utils/chip_info.py | Normalizes Windows Torch processor counts. |
| aiter/jit/utils/build_targets.py | Adds RDNA defaults and count conversion. |
| aiter/jit/core.py | Preserves positive worker overrides. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8bbe6e4ca7
ℹ️ 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".
zufayu
left a comment
There was a problem hiding this comment.
The reusable Windows JIT fixes are now isolated from the CK enablement, and the gfx1201 Windows smoke test passes. LGTM.
|
Thanks for the review and merge. I confirmed that the gfx1201 Windows smoke test and Ruff/Black checks passed on the final PR head, and updated the validation summary to replace the stale CI-pending note. |
#6589 made get_dtype_fp8() return uint8 whenever torch sees no device. The MoE replays hide the GPUs and name their target in GPU_ARCHS, so dtypes.fp8 became uint8 in every replay: fp8 activations failed `q_dtype_a == dtypes.fp8` and were quantized to fp4, MXFP8 rows found no input recipe, and the gfx1250 grouped rows compiled other kernels than the runtime requests without raising anything. Without a visible device, a single explicit GPU_ARCHS target now stands in for the GPU, as it already does in chip_info.get_gfx_runtime(); the runtime detector is still not imported. Signed-off-by: zhimding <[email protected]>


Extract the backend-neutral Windows fixes from #4340 onto current
main, following the maintainer's scope decision.MAX_JOBSoverrides while recalculating automatic worker limits as available memory changes.GPU_ENABLE_WGP_MODEand cover multi-architecture target parsing.hipinfois unavailable. Preserve the no-HIP/no-device fallback.Retains main's existing JIT cache transaction implementation. No CK enablement, target/PREBUILD policy, submodule changes, or CK revalidation are included.
Validation on Windows / Python 3.13:
AITER_TRITON_ONLY=1.e64692e(40 passes, 15 failures); five baseline permission-bit assumptions were made portable. The remaining baseline failures concern publication/tuner-cache tests and CPU Ninja compilation.git diff --check, Ruff 0.16.0, and Black 26.10.1--checkpass on all 11 changed files.Remote CI on
51c3747: the gfx1201 Windows smoke test and Checks workflow (Ruff/Black) passed. Merged as dee019f6.