mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1699] pool_tasks_test and q2_bitplane_parity SIGILL on CPUs without AVX2 (act_quant_any/q2_rows_any have no AVX1 rung) #677
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#677
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 @nashcap on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1699
Repro
Xeon E5-2470 v2 (Ivy Bridge: SSE4.2 + AVX, no AVX2), v0.1.41 (
fb58e0d), built withSTRATA_ISA_FLOOR=avxandSTRATA_BUILD_TESTS=ON:Both are registered in CTest (
pool_tasks_testCMakeLists:1231,q2_bitplane_parity:1477), soctestfails on any machine without AVX2.Where
Reached through the dispatchers in
src/kernels/cpu/expert_layout.cpp(350-358):q2_rows_anyandact_quant_anyknow only two rungs - AVX-512 and AVX2 - and theelsebranch has no AVX2 check, so an AVX-only CPU is handed AVX2 code:q2_bitplane_parityalso callsact_quant_q8_1_avx2directly (q2_bitplane_parity.cpp:46,85).Blast radius
The engine itself is safe: a canonical Q2_0 pack on such a CPU exits at
cpu_require_expert_support()before any of this runs. So this is test-path only - but it hits exactly the users the ISA-floor work (#394) targets: older Xeons building from source with tests enabled. (Found while testing #1697; that PR does not touch these paths.)Fix shape
Either gate the two tests like
native_expert_paritydoes (skip with a message when!cpu_avx2_ok()), or giveact_quant_any/q2_rows_anya third rung - #1697 adds the AVX1 activation quantizer for Q8_K (q8k_quant_avx1); the permuted Q8_1ActQform would need its own AVX1 copy.@nashcap commented on GitHub (Oct 9, 2026):
Fix up as #1701: the third rung (q2_avx1.cpp) in the kq_avx1/iq_avx1 containment pattern. On an E5-2470 v2 both tests now pass (pool_tasks_test 168 bitwise comparisons, q2_bitplane_parity PASS).