| 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 |
|
| 17 |
#if defined(KOKKOSKERNELS_INST_FLOAT) |
| 18 |
// NO TRANSPOSE |
| 19 |
TEST_F(TestCategory, batched_scalar_serial_trtri_u_n_float_float) { |
| 20 |
typedef ::Test::Trtri::ParamTag<Uplo::Upper, Diag::NonUnit> param_tag_type; |
| 21 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 22 |
|
| 23 |
test_batched_trtri<TestDevice, float, float, param_tag_type, algo_tag_type>(); |
| 24 |
} |
| 25 |
TEST_F(TestCategory, batched_scalar_serial_trtri_u_u_float_float) { |
| 26 |
typedef ::Test::Trtri::ParamTag<Uplo::Upper, Diag::Unit> param_tag_type; |
| 27 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 28 |
|
| 29 |
test_batched_trtri<TestDevice, float, float, param_tag_type, algo_tag_type>(); |
| 30 |
} |
| 31 |
TEST_F(TestCategory, batched_scalar_serial_trtri_l_n_float_float) { |
| 32 |
typedef ::Test::Trtri::ParamTag<Uplo::Lower, Diag::NonUnit> param_tag_type; |
| 33 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 34 |
|
| 35 |
test_batched_trtri<TestDevice, float, float, param_tag_type, algo_tag_type>(); |
| 36 |
} |
| 37 |
TEST_F(TestCategory, batched_scalar_serial_trtri_l_u_float_float) { |
| 38 |
typedef ::Test::Trtri::ParamTag<Uplo::Lower, Diag::Unit> param_tag_type; |
| 39 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 40 |
|
| 41 |
test_batched_trtri<TestDevice, float, float, param_tag_type, algo_tag_type>(); |
| 42 |
} |
| 43 |
#endif |
| 44 |
|
| 45 |
#if defined(KOKKOSKERNELS_INST_DOUBLE) |
| 46 |
// NO TRANSPOSE |
| 47 |
TEST_F(TestCategory, batched_scalar_serial_trtri_u_n_double_double) { |
| 48 |
typedef ::Test::Trtri::ParamTag<Uplo::Upper, Diag::NonUnit> param_tag_type; |
| 49 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 50 |
|
| 51 |
test_batched_trtri<TestDevice, double, double, param_tag_type, algo_tag_type>(); |
| 52 |
} |
| 53 |
TEST_F(TestCategory, batched_scalar_serial_trtri_u_u_double_double) { |
| 54 |
typedef ::Test::Trtri::ParamTag<Uplo::Upper, Diag::Unit> param_tag_type; |
| 55 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 56 |
|
| 57 |
test_batched_trtri<TestDevice, double, double, param_tag_type, algo_tag_type>(); |
| 58 |
} |
| 59 |
TEST_F(TestCategory, batched_scalar_serial_trtri_l_n_double_double) { |
| 60 |
typedef ::Test::Trtri::ParamTag<Uplo::Lower, Diag::NonUnit> param_tag_type; |
| 61 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 62 |
|
| 63 |
test_batched_trtri<TestDevice, double, double, param_tag_type, algo_tag_type>(); |
| 64 |
} |
| 65 |
TEST_F(TestCategory, batched_scalar_serial_trtri_l_u_double_double) { |
| 66 |
typedef ::Test::Trtri::ParamTag<Uplo::Lower, Diag::Unit> param_tag_type; |
| 67 |
typedef Algo::Trtri::Unblocked algo_tag_type; |
| 68 |
|
| 69 |
test_batched_trtri<TestDevice, double, double, param_tag_type, algo_tag_type>(); |
| 70 |
} |
| 71 |
#endif |