Skip to content

Commit 2450abd

Browse files
author
Yuuichi Asahi
committed
move implementation details under Impl namespace
1 parent 4a46dbf commit 2450abd

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

batched/dense/impl/KokkosBatched_Pbtrs_Serial_Impl.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/// \author Yuuichi Asahi (yuuichi.asahi@cea.fr)
2323

2424
namespace KokkosBatched {
25+
namespace Impl {
2526

2627
template <typename AViewType, typename XViewType>
2728
KOKKOS_INLINE_FUNCTION static int checkPbtrsInput([[maybe_unused]] const AViewType &A,
@@ -46,6 +47,7 @@ KOKKOS_INLINE_FUNCTION static int checkPbtrsInput([[maybe_unused]] const AViewTy
4647
#endif
4748
return 0;
4849
}
50+
} // namespace Impl
4951

5052
//// Lower ////
5153
template <>
@@ -54,12 +56,12 @@ struct SerialPbtrs<Uplo::Lower, Algo::Pbtrs::Unblocked> {
5456
KOKKOS_INLINE_FUNCTION static int invoke(const AViewType &A, const XViewType &x) {
5557
// Quick return if possible
5658
if (A.extent(1) == 0) return 0;
57-
auto info = checkPbtrsInput(A, x);
59+
auto info = KokkosBatched::Impl::checkPbtrsInput(A, x);
5860
if (info) return info;
5961

6062
const int kd = A.extent(0) - 1;
61-
return SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::invoke(A.extent(1), x.extent(0), A.data(), A.stride_0(),
62-
A.stride_1(), x.data(), x.stride_0(), kd);
63+
return KokkosBatched::Impl::SerialPbtrsInternalLower<Algo::Pbtrs::Unblocked>::invoke(
64+
A.extent(1), x.extent(0), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
6365
}
6466
};
6567

@@ -70,12 +72,12 @@ struct SerialPbtrs<Uplo::Upper, Algo::Pbtrs::Unblocked> {
7072
KOKKOS_INLINE_FUNCTION static int invoke(const AViewType &A, const XViewType &x) {
7173
// Quick return if possible
7274
if (A.extent(1) == 0) return 0;
73-
auto info = checkPbtrsInput(A, x);
75+
auto info = KokkosBatched::Impl::checkPbtrsInput(A, x);
7476
if (info) return info;
7577

7678
const int kd = A.extent(0) - 1;
77-
return SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::invoke(A.extent(1), x.extent(0), A.data(), A.stride_0(),
78-
A.stride_1(), x.data(), x.stride_0(), kd);
79+
return KokkosBatched::Impl::SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::invoke(
80+
A.extent(1), x.extent(0), A.data(), A.stride_0(), A.stride_1(), x.data(), x.stride_0(), kd);
7981
}
8082
};
8183

batched/dense/impl/KokkosBatched_Pbtrs_Serial_Internal.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "KokkosBatched_Tbsv_Serial_Internal.hpp"
2222

2323
namespace KokkosBatched {
24+
namespace Impl {
2425

2526
///
2627
/// Serial Internal Impl
@@ -84,6 +85,7 @@ KOKKOS_INLINE_FUNCTION int SerialPbtrsInternalUpper<Algo::Pbtrs::Unblocked>::inv
8485
return 0;
8586
}
8687

88+
} // namespace Impl
8789
} // namespace KokkosBatched
8890

8991
#endif // KOKKOSBATCHED_PBTRS_SERIAL_INTERNAL_HPP_

0 commit comments

Comments
 (0)