Debian Codegraph @

packages/kokkos-kernels/batched/dense/unit_test/Test_Batched_TeamVectorGemm_Real.hpp

raw
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 #if defined(KOKKOS_BHALF_T_IS_FLOAT)
17 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_nt_bhalf_bhalf) {
18 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::NoTranspose> param_tag_type;
19
20 // test_batched_teamvectorgemm<TestDevice,::Test::bhalfScalarType,::Test::bhalfScalarType,param_tag_type,Algo::Gemm::Blocked>();
21 test_batched_teamvectorgemm<TestDevice, ::Test::bhalfScalarType, ::Test::bhalfScalarType, param_tag_type,
22 Algo::Gemm::Unblocked>();
23 }
24 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_nt_bhalf_bhalf) {
25 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::NoTranspose> param_tag_type;
26
27 // test_batched_teamvectorgemm<TestDevice,::Test::bhalfScalarType,::Test::bhalfScalarType,param_tag_type,Algo::Gemm::Blocked>();
28 test_batched_teamvectorgemm<TestDevice, ::Test::bhalfScalarType, ::Test::bhalfScalarType, param_tag_type,
29 Algo::Gemm::Unblocked>();
30 }
31 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_t_bhalf_bhalf) {
32 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::Transpose> param_tag_type;
33
34 // test_batched_teamvectorgemm<TestDevice,::Test::bhalfScalarType,::Test::bhalfScalarType,param_tag_type,Algo::Gemm::Blocked>();
35 test_batched_teamvectorgemm<TestDevice, ::Test::bhalfScalarType, ::Test::bhalfScalarType, param_tag_type,
36 Algo::Gemm::Unblocked>();
37 }
38 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_t_bhalf_bhalf) {
39 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::Transpose> param_tag_type;
40
41 // test_batched_teamvectorgemm<TestDevice,::Test::bhalfScalarType,::Test::bhalfScalarType,param_tag_type,Algo::Gemm::Blocked>();
42 test_batched_teamvectorgemm<TestDevice, ::Test::bhalfScalarType, ::Test::bhalfScalarType, param_tag_type,
43 Algo::Gemm::Unblocked>();
44 }
45 #endif // KOKKOS_BHALF_T_IS_FLOAT
46
47 #if defined(KOKKOS_HALF_T_IS_FLOAT)
48 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_nt_half_half) {
49 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::NoTranspose> param_tag_type;
50
51 // test_batched_teamvectorgemm<TestDevice,::Test::halfScalarType,::Test::halfScalarType,param_tag_type,Algo::Gemm::Blocked>();
52 test_batched_teamvectorgemm<TestDevice, ::Test::halfScalarType, ::Test::halfScalarType, param_tag_type,
53 Algo::Gemm::Unblocked>();
54 }
55 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_nt_half_half) {
56 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::NoTranspose> param_tag_type;
57
58 // test_batched_teamvectorgemm<TestDevice,::Test::halfScalarType,::Test::halfScalarType,param_tag_type,Algo::Gemm::Blocked>();
59 test_batched_teamvectorgemm<TestDevice, ::Test::halfScalarType, ::Test::halfScalarType, param_tag_type,
60 Algo::Gemm::Unblocked>();
61 }
62 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_t_half_half) {
63 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::Transpose> param_tag_type;
64
65 // test_batched_teamvectorgemm<TestDevice,::Test::halfScalarType,::Test::halfScalarType,param_tag_type,Algo::Gemm::Blocked>();
66 test_batched_teamvectorgemm<TestDevice, ::Test::halfScalarType, ::Test::halfScalarType, param_tag_type,
67 Algo::Gemm::Unblocked>();
68 }
69 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_t_half_half) {
70 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::Transpose> param_tag_type;
71
72 // test_batched_teamvectorgemm<TestDevice,::Test::halfScalarType,::Test::halfScalarType,param_tag_type,Algo::Gemm::Blocked>();
73 test_batched_teamvectorgemm<TestDevice, ::Test::halfScalarType, ::Test::halfScalarType, param_tag_type,
74 Algo::Gemm::Unblocked>();
75 }
76 #endif // KOKKOS_HALF_T_IS_FLOAT
77
78 #if defined(KOKKOSKERNELS_INST_FLOAT)
79 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_nt_float_float) {
80 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::NoTranspose> param_tag_type;
81
82 // test_batched_teamvectorgemm<TestDevice,float,float,param_tag_type,Algo::Gemm::Blocked>();
83 test_batched_teamvectorgemm<TestDevice, float, float, param_tag_type, Algo::Gemm::Unblocked>();
84 }
85 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_nt_float_float) {
86 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::NoTranspose> param_tag_type;
87
88 // test_batched_teamvectorgemm<TestDevice,float,float,param_tag_type,Algo::Gemm::Blocked>();
89 test_batched_teamvectorgemm<TestDevice, float, float, param_tag_type, Algo::Gemm::Unblocked>();
90 }
91 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_t_float_float) {
92 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::Transpose> param_tag_type;
93
94 // test_batched_teamvectorgemm<TestDevice,float,float,param_tag_type,Algo::Gemm::Blocked>();
95 test_batched_teamvectorgemm<TestDevice, float, float, param_tag_type, Algo::Gemm::Unblocked>();
96 }
97 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_t_float_float) {
98 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::Transpose> param_tag_type;
99
100 // test_batched_teamvectorgemm<TestDevice,float,float,param_tag_type,Algo::Gemm::Blocked>();
101 test_batched_teamvectorgemm<TestDevice, float, float, param_tag_type, Algo::Gemm::Unblocked>();
102 }
103 #endif
104
105 #if defined(KOKKOSKERNELS_INST_DOUBLE)
106 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_nt_double_double) {
107 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::NoTranspose> param_tag_type;
108
109 // test_batched_teamvectorgemm<TestDevice,double,double,param_tag_type,Algo::Gemm::Blocked>();
110 test_batched_teamvectorgemm<TestDevice, double, double, param_tag_type, Algo::Gemm::Unblocked>();
111 }
112 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_nt_double_double) {
113 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::NoTranspose> param_tag_type;
114
115 // test_batched_teamvectorgemm<TestDevice,double,double,param_tag_type,Algo::Gemm::Blocked>();
116 test_batched_teamvectorgemm<TestDevice, double, double, param_tag_type, Algo::Gemm::Unblocked>();
117 }
118 TEST_F(TestCategory, batched_scalar_team_vector_gemm_nt_t_double_double) {
119 typedef ::Test::TeamVectorGemm::ParamTag<Trans::NoTranspose, Trans::Transpose> param_tag_type;
120
121 // test_batched_teamvectorgemm<TestDevice,double,double,param_tag_type,Algo::Gemm::Blocked>();
122 test_batched_teamvectorgemm<TestDevice, double, double, param_tag_type, Algo::Gemm::Unblocked>();
123 }
124 TEST_F(TestCategory, batched_scalar_team_vector_gemm_t_t_double_double) {
125 typedef ::Test::TeamVectorGemm::ParamTag<Trans::Transpose, Trans::Transpose> param_tag_type;
126
127 // test_batched_teamvectorgemm<TestDevice,double,double,param_tag_type,Algo::Gemm::Blocked>();
128 test_batched_teamvectorgemm<TestDevice, double, double, param_tag_type, Algo::Gemm::Unblocked>();
129 }
130 #endif