Skip to content

Fix crash on coopmat conversion without decoration#3190

Merged
svenvh merged 1 commit intoKhronosGroup:mainfrom
svenvh:coopmat-conv-nodec
May 30, 2025
Merged

Fix crash on coopmat conversion without decoration#3190
svenvh merged 1 commit intoKhronosGroup:mainfrom
svenvh:coopmat-conv-nodec

Conversation

@svenvh
Copy link
Member

@svenvh svenvh commented May 29, 2025

The SPIR-V reader would crash on the added test during reverse translation. Ensure any cooperative matrix type conversion is handled the same way as a cooperative matrix type conversion with an FPRoundingMode or SaturatedConversion decoration.

The SPIR-V reader would crash on the added test during reverse
translation.  Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.
@svenvh svenvh requested review from MrSidims and vmaksimo May 29, 2025 16:15
Copy link
Contributor

@vmaksimo vmaksimo left a comment

Choose a reason for hiding this comment

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

LGTM.
I don't know why we didn't encounter any problems before this fix, but I also can't find why the intel/llvm frontend couldn't generate conversion instructions without rounding or saturation mode.
Either we are lucky, or we just do not generate such IR to cope with this very translation issue.

@svenvh svenvh merged commit 32738f9 into KhronosGroup:main May 30, 2025
9 checks passed
@svenvh svenvh deleted the coopmat-conv-nodec branch May 30, 2025 11:46
@svenvh
Copy link
Member Author

svenvh commented May 30, 2025

/backport llvm_release_200

@github-actions
Copy link

Attempting to create backport to llvm_release_200...

github-actions bot pushed a commit that referenced this pull request May 30, 2025
The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.
@github-actions
Copy link

Success. Backport PR created: #3192

@svenvh
Copy link
Member Author

svenvh commented May 30, 2025

/backport llvm_release_190

@github-actions
Copy link

Attempting to create backport to llvm_release_190...

github-actions bot pushed a commit that referenced this pull request May 30, 2025
The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.
@github-actions
Copy link

Success. Backport PR created: #3193

@svenvh
Copy link
Member Author

svenvh commented May 30, 2025

/backport llvm_release_180

@github-actions
Copy link

Attempting to create backport to llvm_release_180...

github-actions bot pushed a commit that referenced this pull request May 30, 2025
The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.
@github-actions
Copy link

Success. Backport PR created: #3194

svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request May 30, 2025
…hronosGroup#3190)

The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.

(cherry picked from commit 32738f9)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Jun 3, 2025
…hronosGroup#3190)

The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.

(cherry picked from commit 32738f9)
svenvh added a commit to svenvh/SPIRV-LLVM-Translator that referenced this pull request Jun 3, 2025
…hronosGroup#3190)

The SPIR-V reader would crash on the added test during reverse
translation. Ensure any cooperative matrix type conversion is handled
the same way as a cooperative matrix type conversion with an
FPRoundingMode or SaturatedConversion decoration.

(cherry picked from commit 32738f9)
svenvh added a commit that referenced this pull request Jun 3, 2025
…t decoration (#3192)

Backport of PR #3190 into `llvm_release_200`.

All commits applied cleanly.

Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
svenvh added a commit that referenced this pull request Jun 3, 2025
…t decoration (#3193)

Backport of PR #3190 into `llvm_release_190`.

All commits applied cleanly.

Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
svenvh added a commit that referenced this pull request Jun 3, 2025
…t decoration (#3194)

Backport of PR #3190 into `llvm_release_180`.

All commits applied cleanly.

Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
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.

2 participants