From a36e41532f2941d39c8186705085308f9937e688 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Sat, 7 Dec 2024 00:37:44 +0900 Subject: [PATCH] Merging Test_Batched_SerialGetrf.hpp and Test_Batched_SerialGetrf_Real.hpp Signed-off-by: Yuuichi Asahi --- .../dense/unit_test/Test_Batched_Dense.hpp | 1 - .../unit_test/Test_Batched_SerialGetrf.hpp | 32 +++++++++++++++++++ .../Test_Batched_SerialGetrf_Real.hpp | 31 ------------------ 3 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 batched/dense/unit_test/Test_Batched_SerialGetrf_Real.hpp diff --git a/batched/dense/unit_test/Test_Batched_Dense.hpp b/batched/dense/unit_test/Test_Batched_Dense.hpp index a45b74d2a2..37673e1a5e 100644 --- a/batched/dense/unit_test/Test_Batched_Dense.hpp +++ b/batched/dense/unit_test/Test_Batched_Dense.hpp @@ -64,7 +64,6 @@ #include "Test_Batched_SerialLaswp.hpp" #include "Test_Batched_SerialIamax.hpp" #include "Test_Batched_SerialGetrf.hpp" -#include "Test_Batched_SerialGetrf_Real.hpp" // Team Kernels #include "Test_Batched_TeamAxpy.hpp" diff --git a/batched/dense/unit_test/Test_Batched_SerialGetrf.hpp b/batched/dense/unit_test/Test_Batched_SerialGetrf.hpp index cce4dde7e4..bb905bbdb9 100644 --- a/batched/dense/unit_test/Test_Batched_SerialGetrf.hpp +++ b/batched/dense/unit_test/Test_Batched_SerialGetrf.hpp @@ -335,3 +335,35 @@ int test_batched_getrf() { return 0; } + +#if defined(KOKKOSKERNELS_INST_FLOAT) +TEST_F(TestCategory, test_batched_getrf_float) { + using algo_tag_type = typename Algo::Getrf::Unblocked; + + test_batched_getrf(); +} +#endif + +#if defined(KOKKOSKERNELS_INST_DOUBLE) +TEST_F(TestCategory, test_batched_getrf_double) { + using algo_tag_type = typename Algo::Getrf::Unblocked; + + test_batched_getrf(); +} +#endif + +#if defined(KOKKOSKERNELS_INST_COMPLEX_FLOAT) +TEST_F(TestCategory, test_batched_getrf_fcomplex) { + using algo_tag_type = typename Algo::Getrf::Unblocked; + + test_batched_getrf, algo_tag_type>(); +} +#endif + +#if defined(KOKKOSKERNELS_INST_COMPLEX_DOUBLE) +TEST_F(TestCategory, test_batched_getrf_dcomplex) { + using algo_tag_type = typename Algo::Getrf::Unblocked; + + test_batched_getrf, algo_tag_type>(); +} +#endif diff --git a/batched/dense/unit_test/Test_Batched_SerialGetrf_Real.hpp b/batched/dense/unit_test/Test_Batched_SerialGetrf_Real.hpp deleted file mode 100644 index a53e6c510b..0000000000 --- a/batched/dense/unit_test/Test_Batched_SerialGetrf_Real.hpp +++ /dev/null @@ -1,31 +0,0 @@ -//@HEADER -// ************************************************************************ -// -// Kokkos v. 4.0 -// Copyright (2022) National Technology & Engineering -// Solutions of Sandia, LLC (NTESS). -// -// Under the terms of Contract DE-NA0003525 with NTESS, -// the U.S. Government retains certain rights in this software. -// -// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. -// See https://kokkos.org/LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//@HEADER - -#if defined(KOKKOSKERNELS_INST_FLOAT) -TEST_F(TestCategory, test_batched_getrf_float) { - using algo_tag_type = typename Algo::Getrf::Unblocked; - - test_batched_getrf(); -} -#endif - -#if defined(KOKKOSKERNELS_INST_DOUBLE) -TEST_F(TestCategory, test_batched_getrf_double) { - using algo_tag_type = typename Algo::Getrf::Unblocked; - - test_batched_getrf(); -} -#endif