| 1 |
//@HEADER |
| 2 |
// ************************************************************************ |
| 3 |
// |
| 4 |
// Kokkos v. 4.0 |
| 5 |
// Copyright (2022) National Technology & Engineering |
| 6 |
// Solutions of Sandia, LLC (NTESS). |
| 7 |
// |
| 8 |
// Under the terms of Contract DE-NA0003525 with NTESS, |
| 9 |
// the U.S. Government retains certain rights in this software. |
| 10 |
// |
| 11 |
// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. |
| 12 |
// See https://kokkos.org/LICENSE for license information. |
| 13 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 14 |
// |
| 15 |
//@HEADER |
| 16 |
#ifndef KOKKOSBATCHED_INNER_LU_DECL_HPP |
| 17 |
#define KOKKOSBATCHED_INNER_LU_DECL_HPP |
| 18 |
|
| 19 |
/// \author Kyungjoo Kim ([email protected]) |
| 20 |
|
| 21 |
namespace KokkosBatched { |
| 22 |
|
| 23 |
template <int bmn> |
| 24 |
struct InnerLU { |
| 25 |
const int _as0, _as1; |
| 26 |
|
| 27 |
KOKKOS_INLINE_FUNCTION |
| 28 |
InnerLU(const int as0, const int as1) : _as0(as0), _as1(as1) {} |
| 29 |
|
| 30 |
// lu |
| 31 |
template <typename ValueType> |
| 32 |
KOKKOS_INLINE_FUNCTION int serial_invoke(ValueType *KOKKOS_RESTRICT A); |
| 33 |
|
| 34 |
// for remainder square |
| 35 |
template <typename ValueType> |
| 36 |
KOKKOS_INLINE_FUNCTION int serial_invoke(const int m, ValueType *KOKKOS_RESTRICT A); |
| 37 |
|
| 38 |
// for remainder |
| 39 |
template <typename ValueType> |
| 40 |
KOKKOS_INLINE_FUNCTION int serial_invoke(const int m, const int n, ValueType *KOKKOS_RESTRICT A); |
| 41 |
}; |
| 42 |
} // namespace KokkosBatched |
| 43 |
|
| 44 |
#endif |