Skip to content

Commit

Permalink
fix: errors from code style
Browse files Browse the repository at this point in the history
Signed-off-by: Yuuichi Asahi <[email protected]>
  • Loading branch information
Yuuichi Asahi committed Oct 30, 2024
1 parent fc4ff38 commit 33c3272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions batched/dense/impl/KokkosBatched_Getrf_Serial_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ struct SerialGetrf<Algo::Getrf::Unblocked> {
auto info = checkGetrfInput(A, ipiv);
if (info) return info;

const int m = A.extent(0), n = A.extent(1), piv_size = ipiv.extent(0);
const int m = A.extent(0), n = A.extent(1), init_piv_size = ipiv.extent(0);

Stack stack;
int initial[7] = {0, 0, 0, 0, m, n, piv_size};
int initial[7] = {0, 0, 0, 0, m, n, init_piv_size};
stack.push(initial);

// Quick return if possible
Expand Down
2 changes: 1 addition & 1 deletion batched/dense/unit_test/Test_Batched_SerialGetrf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct Functor_BatchedSerialGemm {
KOKKOS_INLINE_FUNCTION
Functor_BatchedSerialGemm(const ScalarType alpha, const AViewType &a, const BViewType &b, const ScalarType beta,
const CViewType &c)
: _alpha(alpha), _a(a), _b(b), _beta(beta), _c(c) {}
: _a(a), _b(b), _c(c), _alpha(alpha), _beta(beta) {}

KOKKOS_INLINE_FUNCTION
void operator()(const int k) const {
Expand Down

0 comments on commit 33c3272

Please sign in to comment.