Files
tinygrad/test/external/process_replay
qazal 40ec9410f9 simpler process replay (#5452)
* remove check_process_replay

* that can go to the top

* add assert back

* [run_process_replay]

* checkout code [run_process_replay]

* temp [run_process_replay]

* revert temp [run_process_replay]

* ahh this is why [run_process_replay]

* revert temp [run_process_replay]
2024-07-13 19:55:06 +03:00
..

Process replay tests

Process replay is a tool for creating a diff of generated kernels between two commits.

Refactor and speedup PRs need a green process replay check.

Behavior change PRs can use process replay with ASSERT_PROCESS_REPLAY=0 to check the diff is what was expected. It's also an indirect test coverage checker.

Running locally

To run process replay locally:

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

  1. Run tests with RUN_PROCESS_REPLAY=1 in your branch
  2. Checkout master
  3. Run test/external/process_replay/process_replay.py