Skip to content
23 changes: 13 additions & 10 deletions HARDWARE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ be the whole string ("The Arm host" below).

| machine | host key and CPU string | vector flags | JVM | lane-ops/ns at 128 / 256 / 512 | control | 512:256 | source |
|---|---|---|---|---|---|---|---|
| Intel Xeon Platinum 8573C | `xeon8573c`, `INTEL(R) XEON(R) PLATINUM 8573C` | full `avx512` set | `UseAVX=3`, `MaxVectorSize=64` | two readings: 34.5-34.8 / 68.8-69.2 / 93.7-94.1 (eight files, 3 to 21 November 2026); 41.5 / 82.7 / 113.0 (one file, 3 November) | 1.98 to 2.00 in the files; 2.00 to 2.03 in Varka's runs | 1.36 to 1.37 in the files; 1.34 to 1.36 in Varka's runs | Varka, `VARKA-62.md` 11.9, 4 runs (the control and 512:256 ranges of Varka's runs); the files named under "The 8573C's two readings" below; the string from vecbricks/varka's fork runs 41465323581, 41255932044 and 41241977271 (the owner's fork of apache/spark) |
| Intel Xeon Platinum 8573C | `xeon8573c`, `INTEL(R) XEON(R) PLATINUM 8573C` | full `avx512` set | `UseAVX=3`, `MaxVectorSize=64` | two readings: 34.5-35.7 / 68.8-70.8 / 93.7-96.3 (fifteen files, 3 to 22 November 2026); 41.5 / 82.7 / 113.0 (one file, 3 November) | 1.98 to 2.00 in the files; 2.00 to 2.03 in Varka's runs | 1.36 to 1.37 in the files; 1.34 to 1.36 in Varka's runs | Varka, `VARKA-62.md` 11.9, 4 runs (the control and 512:256 ranges of Varka's runs); the files named under "The 8573C's two readings" below; the string from vecbricks/varka's fork runs 41465323581, 41255932044 and 41241977271 (the owner's fork of apache/spark) |
| Intel Xeon 6973P-C (Granite Rapids) | `xeon6973p`, `Intel(R) Xeon(R) 6973P-C` | full `avx512` set | `UseAVX=3`, `MaxVectorSize=64` | see source | 2.00 to 2.01 | 1.33 to 1.35 | Varka, `VARKA-62.md` 11.9, 2 runs; the string from vfdlibm run 41442062308 |
| AMD EPYC 9V45 (Zen 5) | `epyc9v45`, `AMD EPYC 9V45 96-Core Processor` | full `avx512` set | `UseAVX=3`, `MaxVectorSize=64` | see source | 2.04 | 1.99 | Varka, `VARKA-62.md` 11.9, 1 run; the string from Varka's fork runs 41486339971, 41446843041 and 41329377429 |
| AMD EPYC 7763 (Zen 3) | `epyc7763`, `AMD EPYC 7763 64-Core Processor` | `avx2`, no `avx512` | `UseAVX=2`, `MaxVectorSize=32` | 45.0-46.5 / 90.0-92.6 / 90.0-92.6 | 1.99 to 2.01 | 1.00 | Varka, `VARKA-62.md` 11.9, 8 runs; the lane rates, a range, from 16 Varka fork runs, 31 October to 2 November 2026 (41236071283 to 41460150392); the string from `bench/results/exp-epyc7763-2026-11-02.txt` and `log-epyc7763-2026-11-02.txt`; `exp-epyc7763-2026-11-20.txt` reads 46.2 / 92.2 / 92.5 (control 2.00, 512:256 1.00) in its first run and 46.3 / 92.4 / 92.4 in its second, inside the range |
Expand Down Expand Up @@ -74,15 +74,18 @@ it, none is claimed, and whether the ports' arms should differ on Arm waits for

### The 8573C's two readings

Eight of the nine files of this host read 34.5 to 34.8 lane-ops/ns at 128 bits, 68.8 to 69.2 at
256 and 93.7 to 94.1 at 512: `exp-onediv-xeon8573c-2026-11-03.txt` (34.7 / 68.8 / 94.1, control
1.98, 512:256 1.37), `expm1-xeon8573c-2026-11-04.txt` (34.8 / 69.2 / 94.1, 1.99, 1.36) and the six
files of 21 November, `exp-xeon8573c-2026-11-21.txt` and its five siblings (34.5 / 69.1 / 93.7,
2.00, 1.36). `log1p-xeon8573c-2026-11-03.txt`, of the same day as the pair, reads 41.5 / 82.7 /
113.0 (1.99, 1.37), and its scalar `StrictMath` loop reads 7,358 ns on common data where the
`log1p` file of 21 November reads 8,846. Each file's header says which it ran on; no cause for the
difference is claimed here. The 25 nightly draws of this CPU in "What the pool gives" below read
34.5 to 41.7, 68.9 to 83.2 and 93.6 to 113.0 at the three widths.
Fifteen of the sixteen files of this host read 34.5 to 35.7 lane-ops/ns at 128 bits, 68.8 to 70.8
at 256 and 93.7 to 96.3 at 512: `exp-onediv-xeon8573c-2026-11-03.txt` (34.7 / 68.8 / 94.1, control
1.98, 512:256 1.37), `expm1-xeon8573c-2026-11-04.txt` (34.8 / 69.2 / 94.1, 1.99, 1.36), the nine
files of 21 November, from two runs: `exp-xeon8573c-2026-11-21.txt` and its five siblings (34.5 /
69.1 / 93.7, 2.00, 1.36) and `sinh-`, `cosh-` and `cosh-kinds-xeon8573c-2026-11-21.txt` (34.9 /
69.9 / 94.8, 2.00, 1.36), and the four of 22 November, `asin-xeon8573c-2026-11-22.txt` and its
three siblings (35.7 / 70.8 / 96.3, 1.98, 1.36). `log1p-xeon8573c-2026-11-03.txt`, of the same
day as the pair, reads 41.5 / 82.7 / 113.0 (1.99, 1.37), and its scalar `StrictMath` loop reads
7,358 ns on common data where the `log1p` file of 21 November reads 8,846. Each file's header says
which it ran on; no cause for the difference is claimed here. The 25 nightly draws of this CPU in
"What the pool gives" below read 34.5 to 41.7, 68.9 to 83.2 and 93.6 to 113.0 at the three
widths.

The two Xeons are the AVX-512 hosts results wait for and are read first; their 512:256 of about
1.35 means a 512-bit arm can win there, but not by the factor of two its lane count suggests.
Expand Down
33 changes: 24 additions & 9 deletions PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ own logarithm and exponential and calls only `sqrt`, `fabs` and `scalbn`. `sinh`
(`VFdlibm.sinh`, from `e_sinh.c`, computing through `expm1`'s common path below 22 and finishing
the rest per lane), and so is `cosh` (`VFdlibm.cosh`, from `e_cosh.c`, through `exp`'s common path
and expm1's `k == 0` lines, with two arms for its small range: the default arm is the slice arm,
provisionally, the host files of 21 November timing both and deciding neither). `asin` is done
provisionally: the host files of 21 November read the finish arm lower on every `CoshBenchmark`
row, by ratios near 1.3x or inside it, and decide neither). `asin` is done
too (`VFdlibm.asin`, from `e_asin.c`, with `sqrt` as the Vector API's `SQRT`, one arm, and the
lanes of `|x| >= 1` finished per lane), and so is `atan` (`VFdlibm.atan`, from `s_atan.c`, five
ranges through one division on blended operands, the lanes from `2^66` up finished per lane), and
so is `acos` (`VFdlibm.acos`, from `e_acos.c`, built as asin is), and so is `atan2`
(`VFdlibm.atan2`, from `e_atan2.c`, the first function of two arguments: the special lanes blended
over the general path, which calls `atan`'s core, no lane finished per lane, and two arms, the
blended one and the guarded one `VFdlibm` calls, provisionally: the host files of 22 November time
both and give them no direction). `log`, `log10` and `log1p` are done too (`VFdlibm.log`, from
blended one and the guarded one `VFdlibm` calls at every species, by the owner's decision of 22
November; section 5 below gives the case).
`log`, `log10` and `log1p` are done too (`VFdlibm.log`, from
`e_log.c`, `VFdlibm.log10`, from `e_log10.c`, which computes through log's common path, and
`VFdlibm.log1p`, from `s_log1p.c`), and so is `expm1` (`VFdlibm.expm1`, from `s_expm1.c`, whose
reduction is exp's).
Expand Down Expand Up @@ -136,12 +138,25 @@ five are a later, optional set; the large-argument reduction of the trigonometri
The code has changed since both runs (a fault constant and a local in the k conversion, and the
finish's first eight lanes written out with constant indices), so no run has timed today's `exp`
but for the rows of that pair.
Which arm each function keeps stays provisional until the 8573C has a second run, the other
AVX-512 hosts a first, and a pair exists, and the rules for a tie within 1.3x and for hosts that
disagree are set (issue #30); meanwhile `VFdlibm` calls the finish arm of `exp`, `log` and
`log10`, the guarded arm of `expm1`, `log1p` and `atan2` and the slice arm of `cosh`
(`bench/results/cosh-*-2026-11-21.txt` and `atan2-*-2026-11-22.txt` give the arms of `cosh`
and `atan2` no direction, and each wants a re-run on the EPYC 7763 too).
Which arm each function keeps follows the two rules issue #30 set on 21 November 2026: a tie
within 1.3x on every host that has a file goes to the finish arm, except for `cosh`, whose
per-lane set is not rare, so a host run decides its arm; and where hosts disagree, each species
keeps the arm its own rows choose by that rule. The `*Max` rows of the host files of 3 to 21
November for `exp`, `expm1`, `log`, `log10` and `log1p` (`exp-onediv-xeon8573c-2026-11-03.txt` and
those of 20 and 21 November; `log1p-xeon8573c-2026-11-03.txt` and `expm1-xeon8573c-2026-11-04.txt`
have no `*Max` row) time the finish that boxed at `SPECIES_MAX` before issue #37, so they are left
out of both rules; a later run's `*Max` rows time today's finish. On the other rows no function
needs rule 2 yet, so `VFdlibm` runs one arm at every species. Every default stays provisional
until a host run revises it. Meanwhile `VFdlibm` calls the finish arm of `exp`, `log` and `log10`;
the guarded arm of `expm1` and `log1p`, by the owner's deferral of rule 1 until the 8573C's second
run (issue #30, 21 November); the slice arm of `cosh`, provisionally, as the rule's exception
(`bench/results/cosh-xeon8573c-2026-11-21.txt` and `cosh-epyc7763-2026-11-21.txt` read the finish
arm lower on every row by ratios near 1.3x or inside it, and give no direction); and the guarded
arm of `atan2`, which has no finish arm, so rule 1 does not pick between its two ([issue #30's
corrected comment](https://github.com/vecbricks/vfdlibm/issues/30#issuecomment-7085437272)).
Neither host's file gives the arms a direction (`atan2-xeon8573c-2026-11-22.txt`, inside 1.3x;
`atan2-epyc7763-2026-11-22.txt`, near 1.3x or inside it, one run), so guarded stays the default at
every species by the owner's decision of 22 November until a re-run of each host.

## 6. Rules

Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,18 @@ fdlibm's own sequence of operations, lane by lane. That is this library.
one arm, `exp`, `expm1`, `log`, `log10`, `log1p`, `cosh` and `atan2`, each have files from the
Xeon Platinum 8573C and the EPYC 7763 (`bench/results/`), and each file's reading is in
`SKILLS.md`; where two arms are within 1.3x of each other no direction is read, and where the
hosts disagree the files say so. The decision waits for a second run of the 8573C and a first of
the other AVX-512 hosts (`HARDWARE.md`, the EPYC 9V45 when drawn), for `cosh` and `atan2` a
second run of the EPYC 7763 too, a pair, and the rules for a tie and for hosts that disagree
(issue #30). The laptop's numbers do not agree at every width.
hosts disagree the files say so. The rules are set (issue #30): a tie within 1.3x on every host
that has a file goes to the finish arm, except for `cosh`, whose arm a host run decides, and where
hosts disagree each species keeps its own arm (no function needs that yet). `expm1` and `log1p`
stay on their guarded arm by the owner's deferral of the rule until the 8573C's second run. The
`*Max` rows of the host files of 3 to 21 November for `exp`, `expm1`, `log`, `log10` and `log1p`
(`exp-onediv-xeon8573c-2026-11-03.txt` and those of 20 and 21 November;
`log1p-xeon8573c-2026-11-03.txt` and `expm1-xeon8573c-2026-11-04.txt` have no `*Max` row) time the
finish that boxed before issue #37 and are left out of the rules. `atan2` has no finish arm, so
the rule does not pick between its two; neither host's file gives them a direction, and its
guarded arm stays the default at every species by the owner's decision until a re-run of each
host. Every default stays provisional until a host run revises it; `PLAN.md` section 5 gives each
function's case. The laptop's numbers do not agree at every width.

## Testing

Expand Down
Loading