[Engine] 0.2.22 (gfx1100): gr_write_norm_rs still misses the reference on the scalar fallback (ed5bff88c's own new parity test)
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
- 領域
- backend, performance
調査の方向性
Start with engine/src/prefill/kernels.cu and the failing parity test, engine/tests/hip/prefill_gr_write_norm_parity.cpp. Compare the scalar fallback in gr_write_norm_rs_kernel with the gr_write_kernel plus gr_norm_rs_kernel reference composition for odd strides (ldx = D + 1) on gfx1100. Rebuild and run ctest -R hip_prefill_gr_write_norm_parity; done means all configurations match bitwise.
索引モデルが issue の本文から書いたものです。
説明
Area: [Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?: Source (START-HERE.bat, setup.sh or a build)
What happened: see the fenced result below — the named kernel/test mismatch, with the isolation details in the body.
Smallest steps or command that reproduce it: see the fenced block below.
Reproduction status: reproduces on a pristine checkout at the named tag on gfx1100; not fork-specific.
Strata version: 0.2.22 (b28ca95e3)
Graphics card, memory and system: AMD RX 7900 XTX (gfx1100, Navi 31, 24 GiB); Fedora 45, kernel 7.3.4; vendored ROCm SDK 10.2.0a (HIP 7.17.26392, amdclang 24.0.0git)
Hi — we maintain a small gfx1100 replay fork (xyzzing/Strata) and re-play our carried commits onto every upstream tag; the parity pregate in that routine is how this surfaced. Reporting because it is your own new test failing on your own new kernel, in the configurations the test itself added for coverage.
Problem and result
At the v0.2.22 tag (b28ca95e3, engine 0.1.69), on gfx1100 (RX 7900 XTX, ROCm 10.2.0a SDK, amdclang++ 24.0.0git, -O3 --offload-arch=gfx1100, no fast-math), the new test from ed5bff88c fails:
$ ctest -R hip_prefill_gr_write_norm_parity --output-on-failure
T=1 ldx=10240 lo=0 f16=0 identical
T=7 ldx=10240 lo=1 f16=0 identical
T=64 ldx=10240 lo=0 f16=1 identical
T=1000 ldx=10240 lo=1 f16=1 identical
T=4097 ldx=10240 lo=0 f16=0 identical
T=4097 ldx=10304 lo=1 f16=0 identical
MISMATCH rs T=257 ldx=10241 lo=0 f16=0: 18 of 1028 words differ, first at 24
MISMATCH xn16 T=257 ldx=10241 lo=0 f16=0: 1 of 2631936 words differ, first at 1104353
MISMATCH rs T=257 ldx=10241 lo=1 f16=1: 16 of 1028 words differ, first at 84
MISMATCH xn16 T=257 ldx=10241 lo=1 f16=1: 1 of 2631936 words differ, first at 969457
MISMATCH xn16_lo T=257 ldx=10241 lo=1 f16=1: 1176 of 2631936 words differ, first at 215181
RESULT: DIFFERS (1212 words)
- All aligned configurations pass bit-exact, including the production-shaped padded stride (
ldx = D + 64): the #6776 vector-path fix works there, on this card too. - Only the odd-stride configurations fail (
ldx = D + 1). The commit message reports "with the fix, 0" — we cannot reproduce that on gfx1100 for theD+1rows.
What the failing rows take
With ldx = 10241, xo = t * ldx + c * N is 4-word aligned only for t ≡ 0 (mod 4) (N = 2560), so ~75% of tokens take the scalar fallback in gr_write_norm_rs_kernel, not the vector path. 18 of 1028 rs values differ — sparse, last-bit class, not a whole-path signature. We checked the scalar fallback against the reference composition (gr_write_kernel + gr_norm_rs_kernel, both launched with 256 threads) line by line: same fmaf(bo, sc, r) expression, same d = threadIdx.x + 256k reduction order, same block_sum, no fast-math to allow reassociation — and could not find a source-level divergence. We are reporting the empirical signature rather than a root cause; the false-positive candidates we falsified (stale reference, contract change, fork interference, loader) are listed below.
Isolation
- Our replay fork's delta on the failing compilation unit is empty:
engine/src/prefill/kernels.cu,prefill.cppandengine/tests/hip/prefill_gr_write_norm_parity.cppare upstream-verbatim at our tip, and the fork's cmake delta is link-graph only. Pristine v0.2.22 fails identically by construction. - Production is not reachable: the engine's token stride is
DorD + XN_PADwithXN_PAD = 64(src/prefill/prefill.cpp:1008,:5102), both keep every row on the (now bit-exact) vector path. So this is coverage-only on our side — we carry it with a declared exception in our gate rather than a revert, since reverting would resurrect the 1-in-5 rs defect on production rows that #6776 fixed. - Falsified: not the test's reference (it is gr_write + gr_norm_rs as two launches, bitwise, and the aligned cases against the same reference pass); not the fork (empty delta, above); not the loader/environment (other HIP parity binaries on the same card pass; the same binary passes 6 of 8 configurations); not a tolerance question (the test is bitwise by design and we changed nothing).
Ask
If you can reproduce ldx = D+1 on an RDNA3 card (or have a hypothesis for what the scalar fallback reads differently from the two-kernel composition — we compared it against gr_norm_rs_kernel's loop statement by statement), we are glad to run diagnostics. Even a confirmation that the "with the fix, 0" claim was measured on aligned shapes only would sharpen the issue.
Environment: Fedora 45, kernel 7.3.4, gfx1100 (Navi 31), vendored ROCm SDK 10.2.0a (HIP 7.17.26392, amdclang 24.0.0git), build flags -O3 --offload-arch=gfx1100 (Release, no fast-math, project defaults).
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Niko1221/Strata#7365 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 4 日以内に返信
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Niko1221/Strata#7276 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Niko1221/Strata#7230 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Quantinuum/tket#2282 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
メンテナーはふだん 10 日以内に返信
-
Server crashes when a mob dies to poison対応中かも @joelstiller が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DarkCastleMUD/DarkCastle#305 ·
メンテナーはふだん 1 日以内に返信
-
[Issue]: RAS status report lists the wrong pids for an outlier node対応中かも @bhargavchintam が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信