Skip to content

feat: add Metal-backed indexing and search scoring - #44

Merged
aaf2tbz merged 5 commits into
mainfrom
feat/metal-search-acceleration
Sep 1, 2026
Merged

feat: add Metal-backed indexing and search scoring#44
aaf2tbz merged 5 commits into
mainfrom
feat/metal-search-acceleration

Conversation

@aaf2tbz

@aaf2tbz aaf2tbz commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • add centralized wgpu device reporting and lazy cached GPU context
  • retain a versioned compact term representation for GPU scoring
  • add hybrid Metal term matching for large search batches with CPU fallback
  • add configurable GPU thresholds, parity tests, timing/memory instrumentation,
    and exhaustive search benchmarks
  • validate native Apple Silicon Metal execution and CPU parity in macOS CI
  • document macOS 11+ Metal support and release deployment target

Validation

  • cargo fmt --all -- --check
  • cargo test --workspace --features gpu
  • cargo test -p graphiq-core --no-default-features
  • cargo check -p graphiq-bench --no-default-features
  • actionlint .github/workflows/*.yml
  • local Apple M4 Metal smoke, CPU fallback, and ranked-result parity

The representative Apple M4 exhaustive benchmark (2,119 symbols, 50 uncached
iterations) measured 18,076us median with Metal versus 21,111us CPU-only, with
166 GPU dispatches. The default threshold remains conservative so normal
small interactive searches stay on CPU.

@aaf2tbz
aaf2tbz merged commit 1bac136 into main Sep 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant