Skip to content

Commit

Permalink
remove unused variable xm from pbtrs impl
Browse files Browse the repository at this point in the history
Signed-off-by: Yuuichi Asahi <y.asahi@nr.titech.ac.jp>
  • Loading branch information
Yuuichi Asahi committed Oct 25, 2024
1 parent eb7b3ee commit c2de7d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions batched/dense/impl/KokkosBatched_Pbtrs_Serial_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct SerialPbtrs<Uplo::Lower, Algo::Pbtrs::Unblocked> {

const int kd = A.extent(0) - 1;
return KokkosBatched::Impl::SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::invoke(
A.extent(1), x.extent(0), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
A.extent(1), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
}
};

Expand All @@ -86,7 +86,7 @@ struct SerialPbtrs<Uplo::Upper, Algo::Pbtrs::Unblocked> {

const int kd = A.extent(0) - 1;
return KokkosBatched::Impl::SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::invoke(
A.extent(1), x.extent(0), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
A.extent(1), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
}
};

Expand Down
12 changes: 6 additions & 6 deletions batched/dense/impl/KokkosBatched_Pbtrs_Serial_Internal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ namespace Impl {
template <typename AlgoType>
struct SerialPbtrsInternalLower {
template <typename ValueType>
KOKKOS_INLINE_FUNCTION static int invoke(const int an, const int xm, const ValueType *KOKKOS_RESTRICT A,
const int as0, const int as1,
KOKKOS_INLINE_FUNCTION static int invoke(const int an, const ValueType *KOKKOS_RESTRICT A, const int as0,
const int as1,
/**/ ValueType *KOKKOS_RESTRICT x, const int xs0, const int kd);
};

template <>
template <typename ValueType>
KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::invoke(const int an, const int xm,
KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::invoke(const int an,
const ValueType *KOKKOS_RESTRICT A,
const int as0, const int as1,
/**/ ValueType *KOKKOS_RESTRICT x,
Expand All @@ -63,14 +63,14 @@ KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::inv
template <typename AlgoType>
struct SerialPbtrsInternalUpper {
template <typename ValueType>
KOKKOS_INLINE_FUNCTION static int invoke(const int an, const int xm, const ValueType *KOKKOS_RESTRICT A,
const int as0, const int as1,
KOKKOS_INLINE_FUNCTION static int invoke(const int an, const ValueType *KOKKOS_RESTRICT A, const int as0,
const int as1,
/**/ ValueType *KOKKOS_RESTRICT x, const int xs0, const int kd);
};

template <>
template <typename ValueType>
KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::invoke(const int an, const int xm,
KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::invoke(const int an,
const ValueType *KOKKOS_RESTRICT A,
const int as0, const int as1,
/**/ ValueType *KOKKOS_RESTRICT x,
Expand Down

0 comments on commit c2de7d4

Please sign in to comment.