Repository navigation
Closes 5040, fixing a bug in multi-dim matrix multiplication - #5042
Merged
Merged
Conversation
drculhane
requested review from
1RyanK,
ajpotts,
e-kayrakli and
jaketrookman
November 10, 2025 14:09
drculhane
marked this pull request as ready for review
November 10, 2025 14:10
ajpotts
approved these changes
Nov 12, 2025
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.
Closes #5040.
As written, it was requiring matrices a and b to have the same domain, which was incorrect. The actual requirements are: (1) they have the same rank, and (2) the last two dimensions of each must be compatible with 2D matrix multiplication, i.e. m,k and k,n.
This fixes that bug.
Note about changes:
chapel-side: b now gets its own domain (named db), and the where clause in the proc includes
da.rank == db.rankpython-side: the generic_msg call to the chapel-side now includes the rank of the right-side matrix (because the interface requires it), and
pdaLeftandpdaRighthave been renamed topda_Landpda_R, largely because some lines were going over the 105 character limit.