-
Notifications
You must be signed in to change notification settings - Fork 117
[WIP] Batched serial pivoted qr decomposition #2745
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
Open
Yurlungur
wants to merge
5
commits into
kokkos:develop
Choose a base branch
from
Yurlungur:serial-pivoted-qr
base: develop
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.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
43fa505
First attempt to add serial QR decomposition with Householder pivoting
jonahm-LANL f335b01
oops include the correctly named file
jonahm-LANL 687497d
Merge branch 'develop' into serial-pivoted-qr
lucbv b7826a5
Merge branch 'develop' into serial-pivoted-qr
Yurlungur 0ed3635
Merge branch 'develop' into serial-pivoted-qr
Yurlungur 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
43 changes: 43 additions & 0 deletions
43
batched/dense/impl/KokkosBatched_QR_WithColumnPivoting_Serial_Impl.hpp
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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| //@HEADER | ||
| // ************************************************************************ | ||
| // | ||
| // Kokkos v. 4.0 | ||
| // Copyright (2022) National Technology & Engineering | ||
| // Solutions of Sandia, LLC (NTESS). | ||
| // | ||
| // Under the terms of Contract DE-NA0003525 with NTESS, | ||
| // the U.S. Government retains certain rights in this software. | ||
| // | ||
| // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://kokkos.org/LICENSE for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //@HEADER | ||
| #ifndef KOKKOSBATCHED_QR_WITH_COLUMNPIVOTING_SERIAL_IMPL_HPP | ||
| #define KOKKOSBATCHED_QR_WITH_COLUMNPIVOTING_SERIAL_IMPL_HPP | ||
|
|
||
| /// \author Kyungjoo Kim (kyukim@sandia.gov) | ||
|
|
||
| #include "KokkosBatched_Util.hpp" | ||
| #include "KokkosBatched_QR_WithColumnPivoting_Serial_Internal.hpp" | ||
|
|
||
| namespace KokkosBatched { | ||
|
|
||
| /// | ||
| /// Serial Impl | ||
| /// =============== | ||
|
|
||
| struct SerialQR_WithColumnPivoting<Algo::QR::Unblocked> { | ||
| template <typename AViewType, typename tViewType, typename pViewType, typename wViewType> | ||
| KOKKOS_INLINE_FUNCTION static int invoke(const AViewType &A, const tViewType &t, const pViewType &p, | ||
| const wViewType &w, | ||
| /* */ int &matrix_rank) { | ||
| return SerialQR_WithColumnPivotingInternal::invoke(A.extent(0), A.extent(1), A.data(), A.stride(0), A.stride(1), | ||
| t.data(), t.stride(0), p.data(), p.stride(0), w.data(), | ||
| matrix_rank); | ||
| } | ||
| }; | ||
|
|
||
| } // namespace KokkosBatched | ||
|
|
||
| #endif | ||
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.
I am going to guess that some assumptions are made here. For instance you are pulling extents and strides 0 and 1 from A so you expect a rank 2 view. There should be a static assertion on the rank of A then.
You might also want to check that p is storing some kind of integral type?
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.
Makes sense, will do.