tinygrad/test/external/process_replay
qazal 712980e167
fix extract_dataset + add tests to CI (#10995)
* fix extract_dataset + tests

* add CI

* sops.gz itself is same as master

* yml + gzip -c + ge

* don't commit that

* bump limit to 1000

* axis=7

* test_tiny
2025-06-27 01:51:36 +03:00
..
local.sh simpler process replay main loop [pr] (#10588) 2025-06-01 15:03:21 +03:00
process_replay.py fix extract_dataset + add tests to CI (#10995) 2025-06-27 01:51:36 +03:00
README.md only CAPTURE_PROCESS_REPLAY=1 + add filterwarnings back [pr] (#10292) 2025-05-14 11:58:42 +03:00
reset.py merge process replay and viz captures [pr] (#10581) 2025-06-01 12:30:10 +03:00

Process replay tests

Process replay is a tool for creating a diff of generated kernels between two commits. By default, process replay doesn't assert kernel diffs.

Refactor and speedup PRs must enable the assert by including [pr] in the pull request title.

Note that process replay early stops when over 20% of kernels change, for speed..

Running locally

To run process replay locally:

(optional: clear previous process replay runs with test/external/process_replay/reset.py)

  1. Run tests with CAPTURE_PROCESS_REPLAY=1 in your branch. This will pickle process inputs to CACHEDB.
  2. Checkout master
  3. Run test/external/process_replay/process_replay.py

For reference, see test/external/process_replay/local.sh.