[ROCm] Add ROCm backward compatibility test for lu_pivots_to_permutation#34870
Conversation
Summary of ChangesHello @AratiGanesh, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the JAX testing infrastructure by introducing a backward compatibility test for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds a backward compatibility test for lu_pivots_to_permutation on the ROCm platform. The changes are generally good, adding the necessary test data and test case. I have two suggestions to improve the code. First, to make the custom call coverage test more robust, the now-covered hip_lu_pivots_to_permutation should be removed from the list of manually ignored targets. Second, the new test for ROCm is very similar to the existing CUDA test; they could be combined into a single parameterized test to reduce duplication and improve maintainability.
70fa936 to
7af5568
Compare
gnecula
left a comment
There was a problem hiding this comment.
There seem to be some related errors
|
Please rebase. In general, because you have a series of PRs that modify the same file, it is easier if we try to submit them one by one, with rebasing in the middle. I sometimes can do that myself internally in Google, but it involves more steps. |
This adds a backward compatibility test for the LU pivots to permutation operation on ROCm platform. The test ensures that serialized MLIR modules from older JAX versions can still be correctly loaded and executed.
Now that we have test data for hip_lu_pivots_to_permutation, remove it from the manually ignored targets list so the coverage test can verify it.
aa7037f to
d5864f5
Compare
Add ROCm backward compatibility test for
lu_pivots_to_permutationThis PR adds a backward compatibility test for the LU pivots to permutation operation on ROCm platform, ensuring that serialized MLIR modules from older JAX versions can still be correctly loaded and executed.
Changes:
test_rocm_lu_pivots_to_permutationtest methodrocm_lu_pivots_to_permutationtest data (serialized Feb 4, 2026)hip_lu_pivots_to_permutationcustom call