forked from kokkos/kokkos-kernels
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement batched serial tbsv #1
Draft
yasahi-hpc
wants to merge
14
commits into
master
Choose a base branch
from
implement-batched-serial-tbsv
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
For the moment, a parameter |
TODO tasks
|
Most of the modifications are made. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is a draft PR to discuss the implementation strategy of tbsv function.
If I understand correctly, a minimal set for each kernel includes
KokkosBatched_Tbsv_Serial_Impl.hpp
: Internal interfacesKokkosBatched_Tbsv_Serial_Internal.hpp
: Implementation detailsKokkosBatched_Tbsv_Decl.hpp
: APIsTest_Batched_SerialTbsv.hpp
: Unit tests for thatDetailed description
It solves the equation
Ax = b
.Here, the matrix has the following shape.
A
:(batch_count, lda, n)
n
byn
unit or non-unit, upper or lower triangular band matrix with(k+1)
diagonals.x
:(batch_count, n)
Before entry, the incremented array x must contain the n element right-hand side vector
b
.Example of a single batch of matrix A with
n = 10
andk = 3
.Parallelization would be made in the following manner. This is efficient only when
A is given in
LayoutLeft
for GPUs andLayoutRight
for CPUs (parallelized over batch direction).Tests
Firstly, construct an Upper or Lower banded diagonal matrix
A
. Then, convert it to the banded storageAb
. SolvingAx = b
withtrsv
and(Ab)x = b
withtbsv
.tbsv
result is compared withtrsv
result.