mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1795] sycl/CMakeLists.txt test registration lags the top-level one: iq_parity and ple_parity fail on every checkout #713
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#713
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agnaylor on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1795
Environment
xe)-DSTRATA_SYCL_AOT=bmg-g31fb58e0d(v0.1.41)Summary
The SYCL port registers both tests in its generic parity loop as
<test> --selftest, run from the build tree:sycl/CMakeLists.txt:227-233:foreach(p IN ITEMS dequant_s2 s2_gemv iq ... ple ...)…add_test(NAME ${p}_parity COMMAND ${p}_parity --selftest)The top-level
CMakeLists.txtregisters each of them on its own, with what it needs. The SYCL copy never followed.So both fail on every checkout of the port, for reasons unrelated to the kernels they test. Every port
ctestrunthen reports two red tests that mean nothing, which hides real ones.
CMakeLists.txt(CUDA/HIP)sycl/CMakeLists.txtiq_parityiq_parity_fixturesrunstools/iq_fixture.pyas a CTest fixture;iq_parity <build>/iq_fixture; skip code 3 without numpy (:666-710, from #264, 0.1.31)iq_parity --selftest, no fixture stepple_parity--in/--outfromSTRATA_PLE_FIXTURE_DIR,WORKING_DIRECTORY= source tree (:914-925)ple_parity --selftest, working directory = build treea.
iq_paritytreats--selftestas its fixture directoryiq_parityhas no flags:sycl/src/kernels/iq_parity.cpp:29readsconst std::string dir = argc > 1 ? argv[1] : "logs/iq_fixture";. The tool's documented use (:3) ispython tools/iq_fixture.py --out <dir> && build/iq_parity <dir>, and each missing fixture counts as a failure(
:37-45). Nothing in the SYCL build runstools/iq_fixture.py.Actual, on all ten types:
b.
ple_paritylooks for its GGUF relative to the build treesycl/src/kernels/ple_parity.cpp:305-307:The comment says "run from the engine root", but CTest runs the test from the build tree. With
--selftest, amissing table returns
2(:330-334), and so does a missingdense.binpack (:336-341). No CMake variable reachesthe test, and
STRATA_PLE_GGUFappears in the source but not in the docs.Actual:
ple_parity: required PLE table is missing or incompatible: ../../Q2_0/Qwen3.8-Flash-Next-GSQ-RCO-Q2_0-00002-of-00002.gguf (...)This issue does not ask for
ple_parityto skip. The top-level CMake keeps a missing input as a hard error onpurpose ("A test that passes by finding nothing to compare is the failure mode this project keeps re-learning",
CMakeLists.txt:914-917), and #568's fixture-free rewrite was declined. The ask is only that the port get the samecontract: a hard error, but one a user can satisfy.
Repro (both)
Expected: the same behaviour as the CUDA build.
iq_paritygenerates its fixtures and runs (or skips withoutnumpy).
ple_paritycan be pointed at its inputs at configure time, and its relative defaults resolve against theengine root.
Suggested fix: take
iqandpleout of theforeachatsycl/CMakeLists.txt:227and port the top-levelregistrations:
Add the
--packand--in/--outinputs (viaSTRATA_PLE_FIXTURE_DIR) the same way if the SYCL copy needs them.Then name the variables in
docs/INTEL.md's build section, so a port user knowsple_parityneeds the Q2_0 model.Related: #264 (the
iq_parityfix, top-level only); #568 (the stream-sync half was taken in 0.1.40.2, thefixture-free
ple_parityrewrite was declined).@Momoyeyu commented on GitHub (Oct 10, 2026):
Taking this one — PR #1828 ports the top-level registrations into sycl/CMakeLists.txt: iq/ple leave the generic --selftest loop, iq_parity gets the tools/iq_fixture.py CTest fixture with the python+numpy probe (IQ_FIXTURE_PYTHON, exit 3 = skip), and ple_parity runs with WORKING_DIRECTORY at the engine root plus STRATA_PLE_FIXTURE_DIR / STRATA_PLE_GGUF / STRATA_PLE_PACK configure inputs. Missing inputs stay a hard error; docs/INTEL.md names the variables. Verified the registration via ctest -N on the parity block (no SYCL toolchain here — a real ctest on your B70 box would be the confirmation).
@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you, a clear report. In v0.1.42 the SYCL build registers the two tests the way the top-level build does: iq_parity gets an iq_parity_fixtures step that runs tools/iq_fixture.py into the build tree (skipped without python and numpy), and ple_parity runs from the engine root with -DSTRATA_PLE_GGUF=<shard 2 .gguf> and -DSTRATA_PLE_FIXTURE_DIR=
to point it at its inputs. A missing input stays a hard error, as you asked. docs/INTEL.md names the variables. We could not configure the SYCL tree on our Intel box in time, so the CMake change is reviewed but not run there.