| 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_COMPLEX_DOUBLE) |
| 18 |
// NO TRANSPOSE |
| 19 |
TEST_F(TestCategory, batched_serial_tbsv_l_nt_u_dcomplex) { |
| 20 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Lower, Trans::NoTranspose, Diag::Unit>; |
| 21 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 22 |
|
| 23 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 24 |
} |
| 25 |
TEST_F(TestCategory, batched_serial_tbsv_l_nt_n_dcomplex) { |
| 26 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Lower, Trans::NoTranspose, Diag::NonUnit>; |
| 27 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 28 |
|
| 29 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 30 |
} |
| 31 |
TEST_F(TestCategory, batched_serial_tbsv_u_nt_u_dcomplex) { |
| 32 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Upper, Trans::NoTranspose, Diag::Unit>; |
| 33 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 34 |
|
| 35 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 36 |
} |
| 37 |
TEST_F(TestCategory, batched_serial_tbsv_u_nt_n_dcomplex) { |
| 38 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Upper, Trans::NoTranspose, Diag::NonUnit>; |
| 39 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 40 |
|
| 41 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 42 |
} |
| 43 |
// TRANSPOSE |
| 44 |
TEST_F(TestCategory, batched_serial_tbsv_l_t_u_dcomplex) { |
| 45 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Lower, Trans::Transpose, Diag::Unit>; |
| 46 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 47 |
|
| 48 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 49 |
} |
| 50 |
TEST_F(TestCategory, batched_serial_tbsv_l_t_n_dcomplex) { |
| 51 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Lower, Trans::Transpose, Diag::NonUnit>; |
| 52 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 53 |
|
| 54 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 55 |
} |
| 56 |
TEST_F(TestCategory, batched_serial_tbsv_u_t_u_dcomplex) { |
| 57 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Upper, Trans::Transpose, Diag::Unit>; |
| 58 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 59 |
|
| 60 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 61 |
} |
| 62 |
TEST_F(TestCategory, batched_serial_tbsv_u_t_n_dcomplex) { |
| 63 |
using param_tag_type = ::Test::Tbsv::ParamTag<Uplo::Upper, Trans::Transpose, Diag::NonUnit>; |
| 64 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 65 |
|
| 66 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, algo_tag_type>(); |
| 67 |
} |
| 68 |
|
| 69 |
/* [FIXME] These tests need Trans::ConjTranspose in trsv. |
| 70 |
// CONJUGATE TRANSPOSE |
| 71 |
TEST_F(TestCategory, batched_serial_tbsv_l_ct_u_dcomplex) { |
| 72 |
using param_tag_type = |
| 73 |
::Test::Tbsv::ParamTag<Uplo::Lower, Trans::ConjTranspose, Diag::Unit>; |
| 74 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 75 |
|
| 76 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, |
| 77 |
algo_tag_type>(); |
| 78 |
} |
| 79 |
TEST_F(TestCategory, batched_serial_tbsv_l_ct_n_dcomplex) { |
| 80 |
using param_tag_type = |
| 81 |
::Test::Tbsv::ParamTag<Uplo::Lower, Trans::ConjTranspose, Diag::NonUnit>; |
| 82 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 83 |
|
| 84 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, |
| 85 |
algo_tag_type>(); |
| 86 |
} |
| 87 |
TEST_F(TestCategory, batched_serial_tbsv_u_ct_u_dcomplex) { |
| 88 |
using param_tag_type = |
| 89 |
::Test::Tbsv::ParamTag<Uplo::Upper, Trans::ConjTranspose, Diag::Unit>; |
| 90 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 91 |
|
| 92 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, |
| 93 |
algo_tag_type>(); |
| 94 |
} |
| 95 |
TEST_F(TestCategory, batched_serial_tbsv_u_ct_n_dcomplex) { |
| 96 |
using param_tag_type = |
| 97 |
::Test::Tbsv::ParamTag<Uplo::Upper, Trans::ConjTranspose, Diag::NonUnit>; |
| 98 |
using algo_tag_type = typename Algo::Tbsv::Unblocked; |
| 99 |
|
| 100 |
test_batched_tbsv<TestDevice, Kokkos::complex<double>, param_tag_type, |
| 101 |
algo_tag_type>(); |
| 102 |
} |
| 103 |
*/ |
| 104 |
#endif |