-
Notifications
You must be signed in to change notification settings - Fork 91
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
refactor: Use matrix-matrix interface in LAPACK solve #3234
Merged
CusiniM
merged 9 commits into
develop
from
refactor/dkachuma/use-lapack-matrix-matrix-interface
Aug 26, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1e3f671
Use matrix interface
dkachuma 6b8e3ed
uncrustify
dkachuma 1bdbda2
Remove unrelated changes
dkachuma 562d8b8
Remove unncessesary assignment
dkachuma c2c8fab
Merge branch 'develop' into refactor/dkachuma/use-lapack-matrix-matri…
dkachuma e5867d4
Merge branch 'develop' into refactor/dkachuma/use-lapack-matrix-matri…
dkachuma 006e81e
Merge branch 'develop' into refactor/dkachuma/use-lapack-matrix-matri…
dkachuma 5fee5af
Merge branch 'develop' into refactor/dkachuma/use-lapack-matrix-matri…
dkachuma bdf0c0d
Merge branch 'develop' into refactor/dkachuma/use-lapack-matrix-matri…
CusiniM 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 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 personally preferred having the
rhs
and thesolution
into two separate arrays. I am guessing that this is the lapack interface though... We could keep the separation on the GEOS side though.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.
The separate
rhs
/solution
interface onBlasLapackLA
still exists. This change destroys the rhs but avoids having to allocate extra space forsolution
andrhs
knowing that we are not going to need the rhs or the matrix after the solve.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.
is the allocation the same? A single
array2d
instead of 2array1d
?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.
My mistake. The allocation was on the matrix. With the previous interface, everytime we call the solve, additional space had to be allocated for the LU factors of the matrix. This way there is no extra space allocated since it's a single solve and the space allocated for the matrix is used for the LU factors (destroying the matrix but once we have solved we don't care anymore).
With the single column by column solve it would have been nice to factorize the matrix and then use the LU factors on each column but we don't have that interface. Instead I added an interface where you can do an in-place matrix-matrix solve.