Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Feb 12, 2024
1 parent 6bbe1cf commit 97c8e18
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions sparse/impl/KokkosSparse_trsv_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ struct TrsvWrap {
scalar_t**, Layout, typename CrsMatrixType::device_type,
Kokkos::MemoryTraits<Kokkos::Unmanaged | Kokkos::RandomAccess> >;

using Block = Kokkos::View<
scalar_t**, Layout, typename CrsMatrixType::device_type,
Kokkos::MemoryTraits<Kokkos::RandomAccess> >;
using Block =
Kokkos::View<scalar_t**, Layout, typename CrsMatrixType::device_type,
Kokkos::MemoryTraits<Kokkos::RandomAccess> >;

using Vector = Kokkos::View<
scalar_t*, typename CrsMatrixType::device_type,
Kokkos::MemoryTraits<Kokkos::RandomAccess> >;
using Vector = Kokkos::View<scalar_t*, typename CrsMatrixType::device_type,
Kokkos::MemoryTraits<Kokkos::RandomAccess> >;

using UVector = Kokkos::View<
scalar_t*, typename CrsMatrixType::device_type,
Expand All @@ -95,8 +94,8 @@ struct TrsvWrap {
lno_t m_block_items;
Vector m_ones;
Block m_data;
Block m_tmp; // Needed for SerialGesv
UBlock m_utmp; // Needed for SerialGesv
Block m_tmp; // Needed for SerialGesv
UBlock m_utmp; // Needed for SerialGesv
Vector m_vec_data1;
Vector m_vec_data2;

Expand Down Expand Up @@ -154,8 +153,8 @@ struct TrsvWrap {
x(b) = X(r * m_block_size + b, j);
}

// If StaticPivoting is used, there are compiler errors related to comparing
// complex and non-complex.
// If StaticPivoting is used, there are compiler errors related to
// comparing complex and non-complex.
using Algo = KokkosBatched::Gesv::NoPivoting;

KokkosBatched::SerialGesv<Algo>::invoke(A, x, x, m_utmp);
Expand Down

0 comments on commit 97c8e18

Please sign in to comment.