Skip to content

[FlyDSL] [JIT] Fix Windows build arguments and optional imports - #6589

Merged
zufayu merged 5 commits into
ROCm:mainfrom
Yasei-no-otoko:codex/windows-common-improvements
Oct 16, 2026
Merged

zufayu merged 5 commits into
ROCm:mainfrom
Yasei-no-otoko:codex/windows-common-improvements

Conversation

@Yasei-no-otoko

@Yasei-no-otoko Yasei-no-otoko commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Extract the backend-neutral Windows fixes from #4340 onto current main, following the maintainer's scope decision.

  • Parse Windows blob-generator paths and arguments without shell quoting errors. Canonicalize and honor explicit positive MAX_JOBS overrides while recalculating automatic worker limits as available memory changes.
  • Normalize Torch's RDNA processor count according to GPU_ENABLE_WGP_MODE and cover multi-architecture target parsing.
  • Guard optional FlyDSL/native-enum imports and share validated runtime GPU detection for dtype selection, including a Windows Torch fallback when hipinfo is 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:

  • Review regressions: 12 architecture/dtype tests and 4 worker-limit tests pass. Architecture and dtype test files also pass when executed directly, including dtype-parser subprocesses with AITER_TRITON_ONLY=1.
  • During extraction, the optional-FlyDSL tests passed (6 cases) and the Windows generator/worker selection passed (6 cases).
  • The initial full JIT-cache suite had 49 passes and 10 failures. Those same 10 failures reproduce on untouched main at 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 --check pass on all 11 changed files.

Remote CI on 51c3747: the gfx1201 Windows smoke test and Checks workflow (Ruff/Black) passed. Merged as dee019f6.

@Yasei-no-otoko
Yasei-no-otoko requested review from a team and a balanced review from Copilot October 15, 2026 15:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T16:08:24.587881Z 8bbe6e4 PR opened
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 6589 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@github-actions github-actions Bot changed the title [Build] Fix Windows build arguments and optional imports [FlyDSL] [JIT] Fix Windows build arguments and optional imports Oct 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_JOBS overrides.
  • 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.

Comment thread aiter/utility/dtypes.py Resolved
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread aiter/jit/core.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Automatically generated worker limits become permanent overrides, preventing memory-based reductions on subsequent builds.

2 open findings

🧠 Review effort: Balanced

Comment thread aiter/jit/core.py Resolved
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared JIT, import, and Windows GPU-detection changes need final platform verification, with remote CI still pending.

2 open findings

🧠 Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared JIT and architecture-detection changes warrant human confirmation of platform validation, with remote CI reported as pending.

1 open finding
1 resolved since last review

🧠 Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared JIT, architecture detection, and attention dispatch changes warrant human review after pending cross-platform CI completes.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@zufayu zufayu added the ci:windows Trigger Windows smoke test on PR label Oct 16, 2026

@zufayu zufayu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reusable Windows JIT fixes are now isolated from the CK enablement, and the gfx1201 Windows smoke test passes. LGTM.

@zufayu
zufayu merged commit dee019f into ROCm:main Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

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.

zhiding512 added a commit that referenced this pull request Oct 19, 2026
#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:windows Trigger Windows smoke test on PR FlyDSL JIT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants