mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #4213] [Engine] isa_guard_check: strata::kernels::cpu::iq512x_rows holds wide-ISA code but is not allowed #1851
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#1851
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 @Dmitry-B on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4213
Area
Engine
Desktop app, Terminal or source?
Source (I build the engine on this machine with
setup.py --update)What happened
isa_guard_checkfails after a normal source build of 0.1.51. The guard reports thatstrata::kernels::cpu::iq512x_rowsinbuild-tests/libstrata_kernels_cpu.acontains wide-ISAinstructions (777 of them, the first being
vmovq) but is not in the list of functions allowed to holdthem. Of 755 functions in that archive, 117 hold wide instructions, and this is the only public one that
is not listed. On a CPU without AVX-512 this is the class of thing that turns into an illegal instruction.
Smallest steps or command that reproduce it
Reproduction status
Reproduces every time on a fresh build tree, and also in a clean
git worktreeof tagv0.2.6with nolocal files.
Strata version
Strata 0.2.6 · engine 0.1.51 · commit
4b9e05a2a806a3fe24f7b2560d98626c37dade35. The previous build onthis machine (0.1.48.1, from v0.2.3.1) did not report this.
Graphics card, memory and system
RTX 4090 24 GB · 46 GB RAM · Ubuntu 26.04.1 (kernel 7.0.0-38), CUDA 13.4, driver 615.71.09,
AMD Ryzen 9 7950X (this CPU does have AVX-512, so the failure is only visible through the guard).
Model, size and settings
Not related to a model: it is the build-time guard. (The model served on this machine is
Qwen3.8-Flash-Next IQ3_XXS at a 204800-token context.)
Logs
@rwkeyes commented on GitHub (Oct 27, 2026):
One more data point, and a patch.
Built v0.2.7 (
5e8a4cc) with-DSTRATA_ISA_FLOOR=avx, HIPgfx1100. The checker reports two functions here, not one:iq512_reference_gu_rowsis not named in this report, and I could not find it in any open issue.Both are reached only behind a CPU check:
iq512x_rowsthroughx512_one_ok()'siq512x_supported(type)(has_vpopcnt()) andnative_expert.cpp:424/425'sx512_one = avx512 && ...(the DeepSeek CPU lane only forimpl 2, which needsavx2 && want_512 && own_ok());iq512_reference_gu_rowsthroughnative_expert.cpp:457'savx512 && ggml_cpu_has_avx2() && ggml_cpu_has_fma() && iq512_reference_ok().One thing I noticed while tracing them:
iq512_reference_ok()is the only probe of that pair without an internalcpu_avx512_ok()— unlike its siblingx512_one_ok(), its safety rests on the caller's&&ordering, and the probe itself calls the wide rows.#4349 adds both names to
WIDE_PUBLICplus a unit test, in the shape off9e1fff98, and that one guard line. Happy to drop the guard hunk if you would rather keep the change to the list alone.Same build after the patch:
0 not allowed,isa_guard_checkpasses in ctest, battery 168/175 -> 169/175 with the six pre-existing failures unchanged. On a Ryzen 7 7700X + Arc Pro B70 SYCL build:0 not allowed, 48/51 unchanged, ctest 72.51 s -> 72.39 s.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.