-
Notifications
You must be signed in to change notification settings - Fork 109
test for batched tri-diag direct solver #1000
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
Conversation
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.
Pull Request Overview
This PR adds a new unit test for the batched uniform DIA direct solver in the DiaSolveSparseTestsAll suite, verifying that solve correctly handles multiple small tridiagonal systems in a batched form.
- Introduce
SolveBatchedUniformDIAItyped test to cover uniform-batched DIA solves - Set up diagonal data (
D), offsets (O), and RHS/expected tensors (X,E) for two 4×4 systems - Invoke
solve(A, X)and assert near-equality against expected results for both real and complex types
Comments suppressed due to low confidence (2)
test/00_sparse/Dia.cu:241
- [nitpick] The ASCII-art comments describing matrix layout (lines 241–245) are hard to follow and partially redundant. Consider simplifying or aligning the diagram with the data ordering in
D.
// batch0 batch1 batch0 batch1
test/00_sparse/Dia.cu:279
- [nitpick] The comment on line 280 labels 'RHS' but then repeats matrix values; update it to clearly show that it's the RHS (A * E = X) or adjust the diagram to match what's being described.
// RHS.
|
/build |
3 similar comments
|
/build |
|
/build |
|
/build |
|
Merged with #999, this is now good to go! |
|
/build |
Note, this is waiting for #999