mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3409] [Engine] isa_guard_check fails on Linux builds: tq_rows_avx512 (tq_avx512.cpp) is not in WIDE_PUBLIC / WIDE_OBJECTS #1380
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#1380
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 @Norhiro on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3409
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
Expected:
isa_guard_checkpasses when every wide-ISA function is reached only behind a CPU check. Actual: it fails on one such function.On a CUDA build of 0.2.0-beta with
-DSTRATA_BUILD_TESTS=ON -DSTRATA_ISA_FLOOR=avx, ctestisa_guard_checkfails:#3358 shows the same violation on a HIP build ("outside the wide-ISA translation units (object tq_avx512.cpp.o)"), mentioned there as a side note.
As far as I can see this is a gap in the list, not an unguarded call.
tq_rows_avx512is reached only throughtq_rows(tq_isa(), ...)(tq_cpu.cpp:174).tq_isa()picksTqIsa::avx512only whentq_isa_ok(TqIsa::avx512)→cpu_avx512_ok(), andtq_rowsaborts on an ISA the CPU lacks (tq_cpu.cpp:185). This host has no AVX2. No illegal instruction was seen in the engine or in any other test. All the AVX1/AVX2 parity tests pass:router_dot_parity_avx,iq_avx1_parity,iq_avx2_parity,q8k_quant_parity_avx.Suggested change (tested here) in
tools/check_isa_guard.py:"tq_rows_avx512"toWIDE_PUBLIC"tq_avx512.cpp"toWIDE_OBJECTS(so it is also inINIT_FREE_OBJECTS)"tq_avx2.cpp"to the extraINIT_FREE_OBJECTS. It is compiled above the AVX baseline likenvfp4_avx2.cpp, so a static initialiser there would run on every CPU (#2324).With these three changes the check reports
0 not allowedon the same library.tq_avx2.cppcurrently has no static initialiser, so adding it changes nothing today; it guards against a future one.Related, also seen here (already listed in #3358):
tq_cpu_parity,tq_cpu_parity_avx2andnative_hadamard_testprintthis ggml has no trellis types (build with STRATA_GGML_DIR = the agention ... fork)and exit as failed. With the default upstream llama.cpp they would read better as skipped (SKIP_RETURN_CODE 77).Smallest steps or command that reproduce it
Reproduction status
Reproduced locally
Strata version
Strata 0.2.0-beta · engine 0.1.45.3 (source, commit
3d1fb480).mainon 2026-10-20 has notq_rows_avx512/tq_avx512.cppintools/check_isa_guard.py.Graphics card, memory and system
RTX 3060 12 GB (driver 610.57.04, CUDA 13.3 from the pip wheels, g++ 14.4.1), 2 × Xeon E5-2630 v2 (AVX, no AVX2/FMA), 252 GB DDR3, Fedora 44, binutils objdump.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you. Fixed in 0.2.2: the ISA guard knows
tq_rows_avx512andtq_avx512.cpp, soisa_guard_checkpasses on a normal build.Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.2