Skip to content

Conversation

SreecharanGundaboluAMD
Copy link
Contributor

Overview
This pull request addresses a critical bug in the FWD, WRW and BWD solvers where the stride was calculated incorrectly due to buggy manual flipping of inputs and outputs.

Can be reproduced using:
MIOpenDriver conv -n 3 -c 1 -H 1 -W 1 -k 3 -y 3 -x 2 -p 2 -q 1 -u 2 -v 1 -l 1 -j 1 -m conv -g 1 -F 4 -t 0

Bugfix Details
The manual direction flips previously implemented in the FWD, WRW and BWD solvers have been replaced with methods from the ProblemInterpreter class which perform flips based on the convolution direction, ensuring consistency and accuracy. The ProblemInterpreter class is already utilized in most CK solvers.

Enhancements
1.Regression Tests
Added regression tests to relevant unit tests to ensure the correctness of the stride calculation and the overall functionality of the WRW and BWD solvers.
2. Code Cleanup:
Removed WORKAROUND_ISSUE_2867, as this issue is effectively addressed by the bugfix implemented in this pull request.

Copy link
Contributor

@shurale-nkn shurale-nkn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@BradPepersAMD BradPepersAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a solid improvement to use standard methods across CK and MISA and add some test cases to catch similar mistakes.

@SreecharanGundaboluAMD SreecharanGundaboluAMD merged commit 8ad3741 into develop Jun 23, 2025
12 of 41 checks passed
@SreecharanGundaboluAMD SreecharanGundaboluAMD deleted the sgundabo/misa_solvers_bug_fix branch June 23, 2025 16:53
JonathanLichtnerAMD added a commit that referenced this pull request Jun 24, 2025
@SreecharanGundaboluAMD SreecharanGundaboluAMD restored the sgundabo/misa_solvers_bug_fix branch June 24, 2025 17:48
JonathanLichtnerAMD added a commit that referenced this pull request Jun 24, 2025
JonathanLichtnerAMD added a commit that referenced this pull request Jun 24, 2025
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