Commit a08bd40
committed
masking-parity: the same wrong fallback claim, at its source
CodeRabbit on #314. `scripts/masking-parity.sh:26-30` carried the identical
claim this PR already corrected in CLAUDE.md: that a set RUSTFLAGS makes the
arm "measure v3 while claiming v4".
Sharper than a duplicate: CLAUDE.md's correction CITES this script as the
place the trap is documented, so the doc was fixed while the source it points
at still taught the wrong number. An exhaustive grep confirms these were the
only two instances outside the blackboard's historical record.
The correction, with this session's own measurement: RUSTFLAGS replaces EVERY
config rustflags entry, including the DEFAULT config's own `-Ctarget-cpu`, so
no target-cpu reaches rustc and the build lands on the generic `x86-64`
baseline (SSE2) — BELOW v3, and the tier `simd_avx2.rs`'s intrinsics SIGILL
on. Measured: `RUSTFLAGS="-D warnings"` emitted ZERO `-Ctarget-cpu` flags
against 65 with the env unset.
Also states what the arm now IS, since the default flip: it names no tier and
builds whatever config wins, by default `target-cpu=native`. Read the
program's own `avx512f=` header for the tier, or pin config-v3 for AVX2.
Verified the script still runs both ways:
bash scripts/masking-parity.sh native PASS, avx512f=true
CARGO_ARGS='--config .cargo/config-v3.toml' ... native PASS, avx512f=false
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv1 parent 95db84e commit a08bd40
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | 46 | | |
| |||
0 commit comments