Commit e84ce62
committed
fix: Dockerfile + CI default to x86-64-v3 (AVX2) for GitHub compatibility
- Dockerfile: ENV RUSTFLAGS="-C target-cpu=x86-64-v3" before build steps.
Default Docker image now runs on AVX2+ hardware (GitHub CI, most servers).
Dockerfile.avx512 still pins x86-64-v4 for production deployment.
- ci.yaml: RUSTFLAGS "-D warnings" → "-D warnings -C target-cpu=x86-64-v3"
so CI compiles with AVX2 enabled. Previously RUSTFLAGS overrode
.cargo/config.toml entirely, compiling at baseline x86-64 (no AVX at all).
The simd.rs polyfill detects AVX-512/AMX at runtime via LazyLock<Tier>
regardless of compile target, so the AVX2 binary still dispatches to
AVX-512 kernels on capable hardware. Compile-time v3 just means the
AVX2 fallback paths are available when runtime detection fails.
https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh1 parent 1420f13 commit e84ce62
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
0 commit comments