mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #32] [MERGED] Run on CPUs without AVX2 #289
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#289
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/mw00/project-maya/pull/32
Author: @ksanislo
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mw00
Base:
main← Head:no-avx2📝 Commits (1)
2e1f649cpu: run on a CPU without AVX2 - no AVX2 static initializer, runtime AVX2 checks, a clear error instead of SIGILL📊 Changes
6 files changed (+52 additions, -4 deletions)
View changed files
📝
README.md(+1 -1)📝
include/strata/kernels/cpu/expert_layout.hpp(+2 -0)📝
maya.py(+2 -1)📝
src/kernels/cpu/expert_layout.cpp(+42 -0)📝
src/kernels/cpu/iq_avx2.cpp(+4 -1)📝
src/kernels/cpu/native_expert.cpp(+1 -1)📄 Description
iq_avx2.cpp(built with-mavx2) has a static sign table whose constructor runs AVX2 code beforemain: SIGILL on Sandy/Ivy Bridge. The installer also refuses these CPUs.cpu_avx2_ok()(cpuid + XCR0, MSVC-safe likecpu_avx512_ok()): the IQ AVX2 kernels run only when it is true, else ggml's vec_dot.STRATA_GLM_CPU_LANE=0instead of SIGILL.Measured - 2x Xeon E5-2660 v2 + 4x T4: before, SIGILL at start; after, runs, and the CPU lane (ggml kernels) adds +15% decode vs
STRATA_GLM_CPU_LANE=0. AVX2 CPUs take the same paths as before.Not tested: an MSVC build.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.