| 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_SCALE_DECL_HPP |
| 17 |
#define KOKKOSBATCHED_SCALE_DECL_HPP |
| 18 |
|
| 19 |
/// \author Kyungjoo Kim ([email protected]) |
| 20 |
|
| 21 |
#include "impl/Kokkos_Error.hpp" |
| 22 |
|
| 23 |
namespace KokkosBatched { |
| 24 |
|
| 25 |
/// |
| 26 |
/// Serial Scale |
| 27 |
/// |
| 28 |
|
| 29 |
struct [[deprecated]] SerialScale { |
| 30 |
template <typename ScalarType, typename AViewType> |
| 31 |
KOKKOS_INLINE_FUNCTION static int invoke(const ScalarType alpha, const AViewType &A) { |
| 32 |
Kokkos::abort( |
| 33 |
"KokkosBatched::SerialScale is deprecated: use KokkosBlas::SerialScale " |
| 34 |
"instead"); |
| 35 |
return 0; |
| 36 |
} // namespace KokkosBatched |
| 37 |
}; |
| 38 |
|
| 39 |
/// |
| 40 |
/// Team Scale |
| 41 |
/// |
| 42 |
|
| 43 |
template <typename MemberType> |
| 44 |
struct [[deprecated]] TeamScale { |
| 45 |
template <typename ScalarType, typename AViewType> |
| 46 |
KOKKOS_INLINE_FUNCTION static int invoke(const MemberType &member, const ScalarType alpha, const AViewType &A) { |
| 47 |
Kokkos::abort( |
| 48 |
"KokkosBatched::TeamScale is deprecated: use KokkosBlas::TeamScale " |
| 49 |
"instead"); |
| 50 |
return 0; |
| 51 |
} |
| 52 |
}; |
| 53 |
|
| 54 |
/// |
| 55 |
/// TeamVector Scale |
| 56 |
/// |
| 57 |
|
| 58 |
template <typename MemberType> |
| 59 |
struct [[deprecated]] TeamVectorScale { |
| 60 |
template <typename ScalarType, typename AViewType> |
| 61 |
KOKKOS_INLINE_FUNCTION static int invoke(const MemberType &member, const ScalarType alpha, const AViewType &A) { |
| 62 |
Kokkos::abort( |
| 63 |
"KokkosBatched::TeamVectorScale is deprecated: use " |
| 64 |
"KokkosBlas::TeamVectorScale instead"); |
| 65 |
return 0; |
| 66 |
} |
| 67 |
}; |
| 68 |
|
| 69 |
} // namespace KokkosBatched |
| 70 |
|
| 71 |
#endif |