Skip to content

Claude procedure to hunt down non-determinism in pr-head - #4008

Closed
oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:pr-head-fixing
Closed

oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:pr-head-fixing

Conversation

@oharboe

@oharboe oharboe commented Mar 16, 2026 •

Copy link
Copy Markdown
Collaborator

Found and reported this issue The-OpenROAD-Project/OpenROAD#9781

If you have a pr-head with non-determinism, run:

/diagnose-pr-head <github-pr-url>

@oharboe
oharboe requested a review from maliberty March 16, 2026 21:26
Add three scripts to flow/util/ for systematically testing build
determinism:

- test_idempotency.sh: runs a design twice sequentially with different
  FLOW_VARIANTs and compares per-stage ODB hashes
- drilldown_idempotency.sh: tests all A/B perturbation tricks in
  parallel (plain re-run, single-threaded, no ASLR, MALLOC_PERTURB_)
  using FLOW_VARIANT for independent output directories
- sweep_idempotency.sh: runs idempotency tests across multiple designs
  in parallel, escalating from fast to slow

Add .claude/commands/diagnose-pr-head.md skill that orchestrates the
full diagnostic procedure: fetch PR info, checkout, build, sweep
designs, drilldown with A/B tricks, bisect within stages, and report.

These were used to diagnose that repair_timing (RSZ) is
non-deterministic with threads > 1, while pin_access, global_route,
repair_design, and detailed_placement are all deterministic.
See The-OpenROAD-Project/OpenROAD#9781

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe

oharboe commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator Author

@vvbandeira Just FYI on how I dig into non determinism

@oharboe oharboe closed this Mar 16, 2026
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