-
Notifications
You must be signed in to change notification settings - Fork 9
Added methods to diagonally scale csr matrices on the left and right. #283
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 all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
810677d
added diagonal scaling, compiles, need to write tests
shakedregev a80e3c9
created vector, need to add new verify function
shakedregev 88854f9
cpu working, cuda not
shakedregev 7be8ef5
left diagonal scale test passing on cpu and cuda
shakedregev 60ecd8e
tests pass on hip
shakedregev 82a0d85
code works, tests pass
shakedregev 75fedea
corrected name format
shakedregev 13ae6f5
Revert "corrected name format"
shakedregev cfcd70d
fixed naming conflicts
shakedregev ce25196
verified on cuda and changed names
shakedregev 7acca92
made variable names follow conventions
shakedregev 9682336
Update resolve/matrix/MatrixHandler.cpp
shakedregev dd2556a
fixed whitespace inconsistencies
shakedregev 14af253
fixed whitespace inconsistencies
shakedregev 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,43 @@ | ||
| /** | ||
| * @file cudaKernels.h | ||
| * @author Kasia Swirydowicz (kasia.swirydowicz@pnnl.gov) | ||
| * | ||
| * | ||
| * @brief Contains prototypes of CUDA kernels. | ||
| * | ||
| * | ||
| * @note These kernels will be used in CUDA specific code, only. | ||
| * | ||
| * | ||
| */ | ||
| #pragma once | ||
|
|
||
| #include <resolve/Common.hpp> | ||
|
|
||
| namespace ReSolve { | ||
|
|
||
| void mass_inner_product_two_vectors(index_type n, | ||
| index_type i, | ||
| const real_type* vec1, | ||
| const real_type* vec2, | ||
| const real_type* mvec, | ||
| void mass_inner_product_two_vectors(index_type n, | ||
| index_type i, | ||
| const real_type* vec1, | ||
| const real_type* vec2, | ||
| const real_type* mvec, | ||
| real_type* result); | ||
|
|
||
| void mass_axpy(index_type n, index_type i, const real_type* x, real_type* y, const real_type* alpha); | ||
|
|
||
| void leftDiagScale(index_type n, | ||
| const index_type* a_row_ptr, | ||
| real_type* a_val, | ||
| const real_type* diag); | ||
|
|
||
| void rightDiagScale(index_type n, | ||
| const index_type* a_row_ptr, | ||
| const index_type* a_col_idx, | ||
| real_type* a_val, | ||
| const real_type* diag); | ||
|
|
||
| //needed for matrix inf nrm | ||
| void matrix_row_sums(index_type n, | ||
| index_type nnz, | ||
| void matrix_row_sums(index_type n, | ||
| index_type nnz, | ||
| const index_type* a_ia, | ||
| const real_type* a_val, | ||
| const real_type* a_val, | ||
| real_type* result); | ||
|
|
||
| } // namespace ReSolve |
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.
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.
Either fix these or wait for #261 to be merged.