mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5020
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4349
Author: @rwkeyes
Created: 10/27/2026
Status: ❌ Closed
Base:
main← Head:isa-guard-iq512-rows📝 Commits (1)
746b5f5ISA guard: the iq512 exact rows are wide on purpose (#4213)📊 Changes
3 files changed (+17 additions, -0 deletions)
View changed files
📝
src/kernels/cpu/native_expert.cpp(+3 -0)📝
tools/check_isa_guard.py(+3 -0)📝
tools/test_check_isa_guard.py(+11 -0)📄 Description
Problem and result
isa_guard_checkfails on any build whoseiq_avx512.cppis compiled with the wide flags — including a stock-DSTRATA_ISA_FLOOR=avxbuild — because two of its row entry points are not inWIDE_PUBLIC. On v0.2.7 (5e8a4cc), HIP gfx1100,-DSTRATA_ISA_FLOOR=avx:After this change the same archive reads
0 not allowedandisa_guard_checkpasses in ctest.Related discussion
#4213 reports
iq512x_rowson a CUDA build of 0.1.51;iq512_reference_gu_rowsis not named in any open issue I could find. This is the same class as #3409 / #3358, which were closed by aWIDE_PUBLICentry (f9e1fff98), so this follows that shape instead of adding a mechanism.Approach
WIDE_PUBLIC, with the guarding call site in the comment.iq_avx512.cpp.o, still a violation fromiq_avx1.cpp.o.iq512_reference_ok():if (!cpu_avx512_ok()) return false;. That probe was the only one of the pair without an internal check, and it calls the wide rows itself, so its safety otherwise rests on the caller's&&ordering. Say the word and I will drop this hunk to keep the PR to the list alone.No behaviour change on any CPU: the guard only refuses where the callers already refuse.
Validation
Passed:
-DSTRATA_ISA_FLOOR=avx, v0.2.7 tree, rebuilt from this branch:ctest -R isa_guard_checkFailed -> Passed (3.28 s); full battery 175 tests, 168 -> 169 passed, with the six pre-existing failures unchanged (vmm_test,ple_parity,conversation_copy_streams_test,pool_tasks_test,hip_prefill_mmq_parity,pool_cores_test).gr_parity,ple_parity,s2_expert_grouped_parity); ctest total 72.51 s -> 72.39 s.python3 tools/test_check_isa_guard.py: 11 tests, OK.Failed: none observed.
Not run: CUDA and Metal builds — no such host here. The change is host-side only, but the checker scans each backend's
libstrata_kernels_cpu.a, so a CUDA build's list is unverified by me.Limits
The two entries assume those call sites stay guarded. The new unit test pins the policy, not the callers; the added line in
iq512_reference_ok()covers the one probe that had no internal check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.