Skip to content

[VFDLIBM-34] Add hypot to the nightly - #150

Open
MaxGekk wants to merge 3 commits into
mainfrom
nightly-hypot
Open

MaxGekk wants to merge 3 commits into
mainfrom
nightly-hypot

Conversation

@MaxGekk

@MaxGekk MaxGekk commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Part of #34. The nightly's plan step lists hypot in all and, as a function of two arguments, in pairs, so the scheduled night runs twelve functions and sweeps hypot one argument a night by the default pair-passes=alternate, the same argument as atan2's each night (one rotation for both); a dispatch can name it (functions=hypot).

The mechanism needed no change, as for atan2 in #126: the matrices, the turn-over of alternate and pool.py's patterns already handle a second pair function, and hypot's four faults reach hypot alone through reach()'s default case.

Other changes:

  • The workflow's header and its 256-job comment name twelve functions (16 shards are 192 sweep entries, 224 with both; 32 shards of all twelve, 384, are refused).
  • dev/nightly.sh's usage names hypot (the review nit on [VFDLIBM-34] Port hypot from fdlibm #143), and PLAN.md drops its sentence that the night does not list hypot yet.
  • SKILLS.md adds a twelve-function budget entry, an estimate from the night of 22 November (run 44994568244), and notes on the eleven-function entries that one night has since been read.

Why are the changes needed?

hypot is ported (#143) and the night is the correctness run for the ports; until now it ran only by hand.

Does this PR introduce any user-facing change?

No (CI and docs only).

How was this patch tested?

The plan step's run: block, extracted from the workflow and run locally with a date shim: the defaults make 24 sweep, 48 Arm and 24 fuzz entries; functions=hypot makes 2, 4 and 2 under alternate, 1 and 2, and 4, 8 and 2 under both; 16 shards are accepted (192, or 224 with both), and 32 shards and 32 Arm shards are refused.
Each of hypot's four faults narrows the run to hypot; hypot.noSuchFault is refused; atan.dropLo still reaches atan and atan2 only, and with functions=hypot it is refused.
Against main, runs without hypot (functions=exp,log,atan2, with both, and fault=atan.dropLo) write the same output, and the default night's matrices are main's with hypot's entries added.
Over 64 consecutive days, atan2 and hypot get the same argument each night, it turns over at day 32, every slice night 0 to 31 meets both arguments of each, and every matrix stays under 256 entries.
By hand at 256 bits on 4 threads: NIGHTLY_ARGUMENT=1 and 2 with dev/nightly.sh sweep hypot 1023/4096 0x5eed 256 and stripe:255/256 pass; dev/nightly.sh fuzz hypot 20 0x5eed 256, and 10 s as an AVX2 host, pass; under hypot.dropT2 the fuzz exits 1, and under hypot.dropY2 the sweep exits 1.
NightlyTest, PairHarnessTest, PlantedFaultTest and HarnessSelfTest pass, as do pool.py selftest and actionlint.
The workflow's hypot jobs have not run on GitHub: that needs the merge, so the first night with them is their first run.
Cost, an estimate and not a reading: run 44994568244 (eleven functions) took 720 runner-minutes and 57.8 minutes of span, and atan2 was the most costly function at 87; at atan2's cost hypot adds 8 jobs and about 87 runner-minutes, and replaying the night's jobs in the order they started on its slots, hypot's appended, adds 4 to 8 minutes to Arm, the kind that ended last, so the span should be about 62 to 66 minutes, under the budget's 90. The sweep part of that estimate is high, because atan2's sweep checks two arms and hypot's checks one.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 5.5)

Max Gekk added 3 commits November 23, 2026 01:37
The plan step lists hypot in `all` and, as a function of two arguments, in
`pairs`, so the scheduled night runs twelve functions and sweeps hypot one
argument a night by `pair-passes=alternate`, the same argument as atan2's.
The header, the 256-job comment, dev/nightly.sh's usage and PLAN.md name
it; SKILLS.md estimates its cost from the night of 22 November.

Generated-by: Claude Code (Opus 5.5)
The replay takes the jobs in the order they started, with hypot's appended,
not in matrix order.

Generated-by: Claude Code (Opus 5.5)
…even-function entry

bench/pool/nightly-2026-11-22.tsv and nightly-cost-2026-11-22.tsv are
pool.py fetch's rows of 22 November (the scheduled night of eleven
functions and the day's dispatch); the twelve-function estimate cites
them for its 720, 57.8 and 87. The eleven-function entry says it was
written before a night ran them and points to the measured night.

Generated-by: Claude Code (Opus 5.5)
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