Add more unit tests to FA fwd kernels. #609
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note it is not testing the backward kernel but use the kernel in ref_bwd*.py as reference.
Run the UT with
pytest test_backward.py
To run a know set of parameters, change the
main2
function and runpython test_backward.py
(pytest -k
works but it's much slower and requires-s
to enable standard output)The whole test suite takes around 12 hours to complete (after disabling auto-tuning). The main problem is the Triton kernel compiling. With more
tl.constexpr
it make take even longer.