-
Notifications
You must be signed in to change notification settings - Fork 9
Require explicit memory management from the user and remove sloppy memory management. #436
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 79 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
7990197
Create Matrix class, a parent class for matrices including Sparse
andrewxu319 37c8ccf
Added CPU implementation for Schur Complement Conjugate Gradient and …
andrewxu319 08d691c
Fixed bug in MatrixHandlerTests.hpp that caused leftScale and rightSc…
andrewxu319 7868e59
Add to CHANGELOG.md. Removed some unnecessary comments.
andrewxu319 8d3a3d8
Bug fixes (missing <cmath>, type mismatch of variable "i").
andrewxu319 1bf3553
Revert "Create Matrix class, a parent class for matrices including Sp…
andrewxu319 d025508
Apply pre-commmit fixes
andrewxu319 276571c
Update tests/unit/hykkt/HykktSCCGTests.hpp
shakedregev b2d0d13
Apply pre-commmit fixes
shakedregev 2bc2d4a
Formatting fixes.
andrewxu319 2d090b6
Apply pre-commmit fixes
andrewxu319 78b532e
Removed "Matrix.hpp" from resolve/matrix/CMakeLists.txt
andrewxu319 a2af9f3
Apply pre-commmit fixes
andrewxu319 b3eed10
Apply suggestion from @shakedregev
shakedregev df856c0
fixed not building test, test still fails on HIP
shakedregev 37d6f1f
Fix SCCG vector initialization values. The outputs now match the old …
andrewxu319 55d9318
Put SCCG's internal vectors on the heap via malloc. Not strictly need…
andrewxu319 9e9bdd6
Create SCCG unit tests (one set of inputs). NOTE: this code currently…
andrewxu319 c64cb2d
Make SCCG test path CPU, CUDA, and HIP capable (#422)
tamar-dewilde e6eba9d
Address SCCG GPU review comments
tamar-dewilde 5fffaee
Add comments to edited sections of removeDuplicates.
andrewxu319 3974c6c
Standardize matrix/vector handler object use and naming.
andrewxu319 c25cd6f
Apply pre-commmit fixes
andrewxu319 85cfd95
Make matrix and vector handlers passed to SCCG instead of owned by it
andrewxu319 1d75e64
Pass handlers by pointer. This is more consistent with the rest of th…
andrewxu319 b7c09b0
Formatting fixes as suggested in PR.
andrewxu319 2d44fb0
Apply pre-commmit fixes
andrewxu319 c98b838
Reordered variable declaration in SCCG to avoid [-Wreorder] warning
andrewxu319 9c16eff
SCCG test no longer needs a random number generator
andrewxu319 84d3063
Apply pre-commmit fixes
andrewxu319 31fd1aa
Apply suggestion from @shakedregev
shakedregev 6a1eeef
Add HyKKT Solver Class (#432)
andrewxu319 9b98150
Merge branch 'develop' into andrew/sccg-and-matrix-class
andrewxu319 e974d33
Merge branch 'develop' into andrew/sccg-and-matrix-class
shakedregev 9f909a6
Remove unused variables in SCCG and HyKKTSolver
andrewxu319 3d9c63f
Print the current stage in the solver to locate the error
andrewxu319 06ee291
Print the current file set being tested.
andrewxu319 6566ab3
Remove lazy allocation in copyFromExternal in Vector and Matrix class…
andrewxu319 ef26009
Remove the version of Sparse::copyFromExternal() that changes nnz. It…
andrewxu319 a4787b8
Merge remote-tracking branch 'origin/develop' into andrew/strict-mem-…
andrewxu319 0560e77
Remove auto syncing from Vector::getData() and remove "const real_typ…
andrewxu319 7cc4fa0
Add Vector::isUpdated() to enable conditional syncData.
andrewxu319 7080965
Add test outputs to .gitignore
andrewxu319 941a6ce
Remove automatic allocation from Vector::setToZero() and Vector::setT…
andrewxu319 6b34f39
Remove HyKKTSolver::readMatrixFiles(). It really is not necessary, an…
andrewxu319 0460479
Prohibit repeated allocations for vectors and matrices.
andrewxu319 1d0c07d
Remove automatic allocation from csc2csr()
andrewxu319 4545066
Add/fix allocation calls. Make sure all tests pass after the previous…
andrewxu319 2f5709e
Add Vector::isAllocated(). This avoids checking whether a vector is a…
andrewxu319 0e8a6ea
Add default returns to isUpdated() and isAllocated() in Vector
andrewxu319 d8689c6
Reinstate const pointer versions of getData() and removed data-out-of…
andrewxu319 a4834c4
Add allocateAll() for vectors and matrices to replace conditional all…
andrewxu319 5c93316
In VectorHandlerCuda, change the return status of cusolverSpDnrminf()…
andrewxu319 c78ee58
Make setTransposeBufferWorkspace() not allow repeatedly setting the t…
andrewxu319 93339e7
Fix typo
andrewxu319 20fbb0d
Add status returns to a few functions in LinAlgWorkspace.
andrewxu319 2c9ebe1
Remove duplicate allocates in testSysGmres.cpp
andrewxu319 cde9bfe
Remove 00-series test matrices for HyKKTSolver
andrewxu319 5e40d21
Add "return 0" to LinAlgWorkspaceHIP::initializeHandles()
andrewxu319 60cddb0
Remove duplicate allocates in LinSolverIterativeRandFGMRES.cpp
andrewxu319 7bec11d
Revert "Add "return 0" to LinAlgWorkspaceHIP::initializeHandles()"
andrewxu319 e5f7f5d
Revert "Add status returns to a few functions in LinAlgWorkspace."
andrewxu319 08633ce
Update CHANGELOG.md
andrewxu319 0c0477d
Apply pre-commmit fixes
andrewxu319 ee713ab
Remove unnecessary comment
andrewxu319 fea0cad
Remove unnecessary comments. The test only runs when the device is av…
andrewxu319 46f72fc
Simplify logic in MatrixHandlerTests::transpose()
andrewxu319 d6cecbe
Apply pre-commmit fixes
andrewxu319 64d2415
Change load-bearing assert() to out::error()
andrewxu319 8795970
Return after out::error()'s
andrewxu319 0a103e3
Add Logger includes for error logging
andrewxu319 3aa0f11
Apply pre-commmit fixes
andrewxu319 683af6a
Clarify comment in HyKKTSolver
andrewxu319 2c28a56
Remove confusing comment
andrewxu319 a2029ed
Call syncDevice() in sysRefactor only when GPU is enabled
andrewxu319 a2fd2a6
Apply pre-commmit fixes
andrewxu319 a0e50c1
Add return statements after errors in Vector
andrewxu319 8cfd2ca
Add more return statements after errors.
andrewxu319 35ff137
Apply pre-commmit fixes
andrewxu319 376e146
Fix syntax error in sysRefactor
andrewxu319 b8d573c
Fix logic error in LinAlgWorkspaceCUDA/HIP
andrewxu319 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ | |
| .DS_Store | ||
| build/* | ||
| _build | ||
| LastTest.log | ||
| CTestCostData.txt | ||
| install/* | ||
| *~ | ||
| *.swp | ||
|
|
||
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.