Repository navigation
fix(platform): centralize cache-line sizing - #831
Merged
luoxiaojian merged 1 commit intoOct 21, 2026
Merged
Conversation
luoxiaojian
requested review from
Cuiyus,
chinaux,
iaojnh and
richyreachy
as code owners
October 20, 2026 08:56
luoxiaojian
force-pushed
the
codex/cacheline-size-upstream-main
branch
from
October 20, 2026 09:04
7a05b9f to
140d47c
Compare
egolearner
reviewed
Oct 20, 2026
luoxiaojian
force-pushed
the
codex/cacheline-size-upstream-main
branch
3 times, most recently
from
October 20, 2026 09:43
b05eb1a to
051e20c
Compare
Define overridable AILEGO_CACHE_LINE_SIZE with a 128-byte Apple ARM64 default and a 64-byte default elsewhere. Use it for prefetch strides and budgets, cache isolation, aligned buffers, and in-memory vector layouts. Preserve fixed SIMD widths and on-disk layouts. Keep zero-line prefetch a no-op and retain caller-side automatic line counts. Update parameter documentation and alignment/prefetch regression tests, including the latest Flat query-metadata cache isolation. Validation: 170 regression tests on upstream/main (8397071), covering platform helpers, allocation, buffer storage, HNSW, Vamana, and Flat.
luoxiaojian
force-pushed
the
codex/cacheline-size-upstream-main
branch
from
October 20, 2026 09:49
051e20c to
01d0508
Compare
egolearner
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Define overridable AILEGO_CACHE_LINE_SIZE with a 128-byte Apple ARM64 default and a 64-byte default elsewhere. Use it for prefetch strides and budgets, cache isolation, aligned buffers, and in-memory vector layouts. Preserve fixed SIMD widths and on-disk layouts.
Keep zero-line prefetch a no-op and retain caller-side automatic line counts. Update parameter documentation and alignment/prefetch regression tests, including the latest Flat query-metadata cache isolation.
Validation: 170 regression tests on upstream/main (8397071), covering platform helpers, allocation, buffer storage, HNSW, Vamana, and Flat.