[Chore] Fallback unsupported PTX TIR tests to upstream state - #82
Open
toudefu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
This PR reverts several PTX-specific TensorIR (TIR) test cases back to their upstream
mainstate.Currently, these tests heavily rely on NVIDIA-specific hardware behaviors, particularly the 32-thread warp size and specific register layouts (e.g., software fallbacks for
ldmatrixwith hardcoded 32-thread indexing). When running on architectures with a 64-thread warp/wavefront (such as Moore Threads MACA), these hardcoded memory mapping formulas cause severe data layout misalignment and precision issues.Instead of adding complex, architecture-specific
if/elsefallbacks that pollute the PTX test suite, we are rolling these files back to cleanly align with upstream.Modifications
Reverted the following files to the latest
upstream/mainstate viagit checkout:tests/python/tirx-base/test_tir_ptx_cp_async.pytests/python/tirx-base/test_tir_ptx_griddepcontrol.pytests/python/tirx-base/test_tir_ptx_ldmatrix.pytests/python/tirx-base/test_tir_ptx_mma.pytests/python/tirx-base/test_tir_ptx_mma_sp.pytests/python/tirx-base/test_tir_ptx_scalar_f32_math.pyTarget Branch
dev