Skip to content

Conversation

@pranavm-nvidia
Copy link
Collaborator

@pranavm-nvidia pranavm-nvidia commented Sep 24, 2024

Adds performance testing, along with various other improvements and fixes. I recommend reviewing this MR one commit at a time. Each commit is self-contained.

@pranavm-nvidia pranavm-nvidia force-pushed the perf-tests branch 4 times, most recently from 9743493 to 467e132 Compare October 1, 2024 21:34
@pranavm-nvidia pranavm-nvidia force-pushed the perf-tests branch 3 times, most recently from a22524e to fc0d31f Compare October 7, 2024 23:12
@pranavm-nvidia pranavm-nvidia changed the title testing: Do not merge!! Adds performance testing Oct 7, 2024
@pranavm-nvidia pranavm-nvidia force-pushed the perf-tests branch 4 times, most recently from a5584db to a51b47f Compare October 8, 2024 17:28
Adds three kinds of performance tests:

1. Regression testing, which will compare current Tripy performance to historical data
    to ensure we don't regress. This can currently only be done in CI.

2. Comparative testing, which will compare Tripy and `torch.compile`

3. Overhead testing, which will check the overhead introduced by Tripy as compared
    to running the underlying MLIR executable by itself. This is done by measuring
    how long it takes to run an empty executable since in that case, all the time
    is taken by the Tripy wrapper code.
Removes `utils.volume` since it can be easily replaced with `math.prod`.
Applies various optimizations based on data from NSight traces. For example,
this includes removing all assertions in the critical path and reducing the
amount of Python code involved as much as possible.
@pranavm-nvidia pranavm-nvidia merged commit eefea1a into main Oct 9, 2024
1 check passed
@pranavm-nvidia pranavm-nvidia deleted the perf-tests branch October 9, 2024 16:45
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.

3 participants