[Tests] Fix assert bug for fp8e5 dot on sm120. #8927
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.
New contributor declaration
I am not making a trivial change, such as fixing a typo in a comment.
I have written a PR description following these
rules.
I have run
pre-commit run --from-ref origin/main --to-ref HEAD.Select one of the following.
/testforlittests/unittestfor C++ tests/python/testfor end-to-end testsit fixes a test bug.Select one of the following.
littests.littests I have added follow these best practices,including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)
Description:
This commit fixes a test bug where the PTX code was not correctly matching the expected string. The assertion has been updated to reflect the changes introduced by PR #7409 in the Triton repository.
Test environment:
Hardware: AMD 8945HX CPU, NVIDIA RTX 5070Ti Laptop GPU.
Operating System: Ubuntu 20.04, from WSL2.
Triton Version: The latest version from main branch.
Change details:
The original assertion checked for the PTX string 'mma.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32'.

After the changes in PR #7409, the PTX generated by the fp8e5 dot test should now be 'mma.sync.aligned.m16n8k32.row.col.f32.e5m2.e5m2.f32'.

The test was failing because it expected the old PTX string, but the PTX code generated for the operation in this test had changed after the previous PR.
This update ensures that the test correctly checks the new PTX code, which now matches the changes made in Triton as part of PR #7409.
No other parts of the code were affected, and the test now passes successfully with the updated PTX assertion.

Why this change was necessary:
PR #7409 updated the lowering logic for the fp8 dot operation in Triton. The original test assertion was expecting the old PTX code, while the newly generated PTX code is different. This commit updates the test to match the new PTX code generated after PR #7409, ensuring that the test now correctly checks the updated PTX code.
Additional notes:
This change only affects the test and does not impact other functionality.