feat(A.1 #7): runtime CPU feature detection (AVX2/FMA/AVX-512/SSE4.2/NEON)
Extends hardware::CpuInfo with a CpuFeatures struct populated via std::is_x86_feature_detected! on x86_64 and an architectural assumption for aarch64 (NEON). Adds has_ggml_baseline() so callers can cheaply ask 'will whisper.cpp / llama.cpp ship a fast path on this CPU?' without knowing the arch-specific rule. The point of #7 is giving the runtime a way to surface a clear "non-AVX2 fallback" warning before the user hits a wall of silent slowness. The banner itself ships in the next commit as part of get_runtime_capabilities (item #1). Tests cover the baseline helper on both x86 and non-x86 targets. Co-authored-by: jars <jakejars@users.noreply.github.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ dist/
|
||||
Cargo.lock
|
||||
.firecrawl/
|
||||
.worktrees/
|
||||
.cargo/
|
||||
|
||||
Reference in New Issue
Block a user