- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6
 
Initial implementation of row/column blocked MPIMatrixMult #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            30 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      7fcc2cf
              
                Added impl, test and example
              
              
                astroC86 6a9d382
              
                Merge branch 'PyLops:main' into astroC86-SUMMA
              
              
                astroC86 f72fce6
              
                Addressed some comments
              
              
                astroC86 c607283
              
                Example formating
              
              
                astroC86 de1a173
              
                Rename MatrixMultiply file to MatrixMult
              
              
                astroC86 82b7e34
              
                Addressed more issues
              
              
                astroC86 9e1a49f
              
                Addressed comments
              
              
                astroC86 22cde7b
              
                Addressing changes
              
              
                astroC86 740030d
              
                Minor cosmetic changes
              
              
                astroC86 a88dec3
              
                More minor changes
              
              
                astroC86 66f1770
              
                Example shape dims general
              
              
                astroC86 7ac593d
              
                Added comments to example
              
              
                astroC86 8a56096
              
                I donot know why I thought I needed to batch
              
              
                astroC86 42452a1
              
                Inital docstring for matrix mult
              
              
                astroC86 a110ff8
              
                minor: cleanup of docstrings and updated example
              
              
                mrava87 bd9ad37
              
                minor: fix mistake in plot_matrixmult
              
              
                mrava87 18db078
              
                removed now useless bcast and fixed mask in test
              
              
                astroC86 ef3c283
              
                changed tests
              
              
                astroC86 4e39068
              
                Fixed tests and moved checks to root
              
              
                astroC86 ed3b585
              
                Fix internal check for MPIMatrixMult
              
              
                astroC86 7b76f96
              
                Fixed Notation
              
              
                astroC86 3e9659e
              
                Skipping test if number of procs is not square for now
              
              
                astroC86 dd9b43c
              
                Merge branch 'main' into astroC86-SUMMA
              
              
                astroC86 a85e75a
              
                Fixed Doc error
              
              
                astroC86 b7e6702
              
                Renamed layer and group as to row and col respectively
              
              
                astroC86 ae5661b
              
                minor: small improvements to text
              
              
                mrava87 053e52d
              
                minor: fix flake8
              
              
                mrava87 9aedd7c
              
                MatrixMul works with non-square prcs by creating square subcommunicator
              
              
                astroC86 4c662d6
              
                minor: stylistic fixes
              
              
                mrava87 0c34b78
              
                minor: fix flake8
              
              
                mrava87 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              
              
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  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.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in real-life problem this would not fly as we usually don't want to use operators in isolation but combine them... so this way I suspect some ranks will be killed and if used by other operators the overall run will crash.
I am not so concerned as in practice we will hardly end up in these edge cases, so now if someone does for just MatrixMult things will still work, which is nice... if they do it for more complex operators that include MatrixMult, they will have to handle it...
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can get rid of the exit if you want, it shouldn't affect anything since all operations from then on would use the new communicator that includes only the active procs in the newly defined square grid and so other procs are free to do what they want, or just remain idle. In theory we can come up with an example where:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure you get my point here.. in PyLops-MPI we do not really care to apply two operators one after the other, this is not the purpose of the library; what we want/need is to be able to chain/stack atomic operators (like MatrixMult) to create more scientifically interesting ones and solve inverse problems. So what I really want to be able to do is something like:
I added this to the test and check consistency with the serial version and everything seems to work (at least for the case with all rank active)
This was an oversight from my side, I should have asked to check / checked that we could do it before merging... not too bad, we can tests and examples now - will try tonight to open a PR with what I have so far
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ook, I see your concern! That is weird I will investigate