| 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 |
#ifndef KOKKOSBLAS3_TRMM_TPL_SPEC_DECL_HPP_ |
| 18 |
#define KOKKOSBLAS3_TRMM_TPL_SPEC_DECL_HPP_ |
| 19 |
|
| 20 |
// Generic Host side BLAS (could be MKL or anything) |
| 21 |
#ifdef KOKKOSKERNELS_ENABLE_TPL_BLAS |
| 22 |
#include "KokkosBlas_Host_tpl.hpp" |
| 23 |
|
| 24 |
namespace KokkosBlas { |
| 25 |
namespace Impl { |
| 26 |
|
| 27 |
#define KOKKOSBLAS3_TRMM_BLAS(SCALAR_TYPE, BASE_SCALAR_TYPE, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 28 |
template <class ExecSpace> \ |
| 29 |
struct TRMM<ExecSpace, \ |
| 30 |
Kokkos::View<const SCALAR_TYPE**, LAYOUTA, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 31 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> >, \ |
| 32 |
Kokkos::View<SCALAR_TYPE**, LAYOUTB, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 33 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> >, \ |
| 34 |
true, ETI_SPEC_AVAIL> { \ |
| 35 |
typedef SCALAR_TYPE SCALAR; \ |
| 36 |
typedef Kokkos::View<const SCALAR**, LAYOUTA, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 37 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> > \ |
| 38 |
AViewType; \ |
| 39 |
typedef Kokkos::View<SCALAR**, LAYOUTB, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 40 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> > \ |
| 41 |
BViewType; \ |
| 42 |
\ |
| 43 |
static void trmm(const ExecSpace& /*space*/, const char side[], const char uplo[], const char trans[], \ |
| 44 |
const char diag[], typename BViewType::const_value_type& alpha, const AViewType& A, \ |
| 45 |
const BViewType& B) { \ |
| 46 |
Kokkos::Profiling::pushRegion("KokkosBlas::trmm[TPL_BLAS," #SCALAR_TYPE "]"); \ |
| 47 |
const int M = static_cast<int>(B.extent(0)); \ |
| 48 |
const int N = static_cast<int>(B.extent(1)); \ |
| 49 |
\ |
| 50 |
bool A_is_layout_left = std::is_same<Kokkos::LayoutLeft, LAYOUTA>::value; \ |
| 51 |
bool B_is_layout_left = std::is_same<Kokkos::LayoutLeft, LAYOUTB>::value; \ |
| 52 |
\ |
| 53 |
const int AST = A_is_layout_left ? A.stride(1) : A.stride(0), LDA = (AST == 0) ? 1 : AST; \ |
| 54 |
const int BST = B_is_layout_left ? B.stride(1) : B.stride(0), LDB = (BST == 0) ? 1 : BST; \ |
| 55 |
\ |
| 56 |
char side_; \ |
| 57 |
char uplo_; \ |
| 58 |
\ |
| 59 |
if (A_is_layout_left) { \ |
| 60 |
if ((side[0] == 'L') || (side[0] == 'l')) \ |
| 61 |
side_ = 'L'; \ |
| 62 |
else \ |
| 63 |
side_ = 'R'; \ |
| 64 |
if ((uplo[0] == 'L') || (uplo[0] == 'l')) \ |
| 65 |
uplo_ = 'L'; \ |
| 66 |
else \ |
| 67 |
uplo_ = 'U'; \ |
| 68 |
} else { \ |
| 69 |
if ((side[0] == 'L') || (side[0] == 'l')) \ |
| 70 |
side_ = 'R'; \ |
| 71 |
else \ |
| 72 |
side_ = 'L'; \ |
| 73 |
if ((uplo[0] == 'L') || (uplo[0] == 'l')) \ |
| 74 |
uplo_ = 'U'; \ |
| 75 |
else \ |
| 76 |
uplo_ = 'L'; \ |
| 77 |
} \ |
| 78 |
\ |
| 79 |
if (A_is_layout_left) \ |
| 80 |
HostBlas<BASE_SCALAR_TYPE>::trmm(side_, uplo_, trans[0], diag[0], M, N, alpha, \ |
| 81 |
reinterpret_cast<const BASE_SCALAR_TYPE*>(A.data()), LDA, \ |
| 82 |
reinterpret_cast<BASE_SCALAR_TYPE*>(B.data()), LDB); \ |
| 83 |
else \ |
| 84 |
HostBlas<BASE_SCALAR_TYPE>::trmm(side_, uplo_, trans[0], diag[0], N, M, alpha, \ |
| 85 |
reinterpret_cast<const BASE_SCALAR_TYPE*>(A.data()), LDA, \ |
| 86 |
reinterpret_cast<BASE_SCALAR_TYPE*>(B.data()), LDB); \ |
| 87 |
Kokkos::Profiling::popRegion(); \ |
| 88 |
} \ |
| 89 |
}; |
| 90 |
|
| 91 |
#define KOKKOSBLAS3_DTRMM_BLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 92 |
KOKKOSBLAS3_TRMM_BLAS(double, double, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 93 |
|
| 94 |
#define KOKKOSBLAS3_STRMM_BLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 95 |
KOKKOSBLAS3_TRMM_BLAS(float, float, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 96 |
|
| 97 |
#define KOKKOSBLAS3_ZTRMM_BLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 98 |
KOKKOSBLAS3_TRMM_BLAS(Kokkos::complex<double>, std::complex<double>, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 99 |
|
| 100 |
#define KOKKOSBLAS3_CTRMM_BLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 101 |
KOKKOSBLAS3_TRMM_BLAS(Kokkos::complex<float>, std::complex<float>, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 102 |
|
| 103 |
// Explicitly define the TRMM class for all permutations listed below |
| 104 |
|
| 105 |
KOKKOSBLAS3_DTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, true) |
| 106 |
KOKKOSBLAS3_DTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, false) |
| 107 |
KOKKOSBLAS3_DTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, true) |
| 108 |
KOKKOSBLAS3_DTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, false) |
| 109 |
|
| 110 |
KOKKOSBLAS3_STRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, true) |
| 111 |
KOKKOSBLAS3_STRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, false) |
| 112 |
KOKKOSBLAS3_STRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, true) |
| 113 |
KOKKOSBLAS3_STRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, false) |
| 114 |
|
| 115 |
KOKKOSBLAS3_ZTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, true) |
| 116 |
KOKKOSBLAS3_ZTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, false) |
| 117 |
KOKKOSBLAS3_ZTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, true) |
| 118 |
KOKKOSBLAS3_ZTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, false) |
| 119 |
|
| 120 |
KOKKOSBLAS3_CTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, true) |
| 121 |
KOKKOSBLAS3_CTRMM_BLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::HostSpace, false) |
| 122 |
KOKKOSBLAS3_CTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, true) |
| 123 |
KOKKOSBLAS3_CTRMM_BLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::HostSpace, false) |
| 124 |
|
| 125 |
} // namespace Impl |
| 126 |
} // namespace KokkosBlas |
| 127 |
#endif // KOKKOSKERNELS_ENABLE_TPL_BLAS |
| 128 |
|
| 129 |
// cuBLAS |
| 130 |
#ifdef KOKKOSKERNELS_ENABLE_TPL_CUBLAS |
| 131 |
#include <KokkosBlas_tpl_spec.hpp> |
| 132 |
|
| 133 |
namespace KokkosBlas { |
| 134 |
namespace Impl { |
| 135 |
|
| 136 |
#define KOKKOSBLAS3_TRMM_CUBLAS(SCALAR_TYPE, CUDA_SCALAR_TYPE, CUBLAS_FN, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 137 |
template <class ExecSpace> \ |
| 138 |
struct TRMM<ExecSpace, \ |
| 139 |
Kokkos::View<const SCALAR_TYPE**, LAYOUTA, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 140 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> >, \ |
| 141 |
Kokkos::View<SCALAR_TYPE**, LAYOUTB, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 142 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> >, \ |
| 143 |
true, ETI_SPEC_AVAIL> { \ |
| 144 |
typedef SCALAR_TYPE SCALAR; \ |
| 145 |
typedef Kokkos::View<const SCALAR**, LAYOUTA, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 146 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> > \ |
| 147 |
AViewType; \ |
| 148 |
typedef Kokkos::View<SCALAR**, LAYOUTB, Kokkos::Device<ExecSpace, MEM_SPACE>, \ |
| 149 |
Kokkos::MemoryTraits<Kokkos::Unmanaged> > \ |
| 150 |
BViewType; \ |
| 151 |
\ |
| 152 |
static void trmm(const ExecSpace& space, const char side[], const char uplo[], const char trans[], \ |
| 153 |
const char diag[], typename BViewType::const_value_type& alpha, const AViewType& A, \ |
| 154 |
const BViewType& B) { \ |
| 155 |
Kokkos::Profiling::pushRegion("KokkosBlas::trmm[TPL_CUBLAS," #SCALAR_TYPE "]"); \ |
| 156 |
const int M = static_cast<int>(B.extent(0)); \ |
| 157 |
const int N = static_cast<int>(B.extent(1)); \ |
| 158 |
\ |
| 159 |
bool A_is_layout_left = std::is_same<Kokkos::LayoutLeft, LAYOUTA>::value; \ |
| 160 |
bool B_is_layout_left = std::is_same<Kokkos::LayoutLeft, LAYOUTB>::value; \ |
| 161 |
\ |
| 162 |
const int AST = A_is_layout_left ? A.stride(1) : A.stride(0), LDA = (AST == 0) ? 1 : AST; \ |
| 163 |
const int BST = B_is_layout_left ? B.stride(1) : B.stride(0), LDB = (BST == 0) ? 1 : BST; \ |
| 164 |
\ |
| 165 |
cublasSideMode_t side_; \ |
| 166 |
cublasFillMode_t uplo_; \ |
| 167 |
cublasOperation_t trans_; \ |
| 168 |
cublasDiagType_t diag_; \ |
| 169 |
\ |
| 170 |
if (A_is_layout_left) { \ |
| 171 |
if ((side[0] == 'L') || (side[0] == 'l')) \ |
| 172 |
side_ = CUBLAS_SIDE_LEFT; \ |
| 173 |
else \ |
| 174 |
side_ = CUBLAS_SIDE_RIGHT; \ |
| 175 |
if ((uplo[0] == 'L') || (uplo[0] == 'l')) \ |
| 176 |
uplo_ = CUBLAS_FILL_MODE_LOWER; \ |
| 177 |
else \ |
| 178 |
uplo_ = CUBLAS_FILL_MODE_UPPER; \ |
| 179 |
} else { \ |
| 180 |
if ((side[0] == 'L') || (side[0] == 'l')) \ |
| 181 |
side_ = CUBLAS_SIDE_RIGHT; \ |
| 182 |
else \ |
| 183 |
side_ = CUBLAS_SIDE_LEFT; \ |
| 184 |
if ((uplo[0] == 'L') || (uplo[0] == 'l')) \ |
| 185 |
uplo_ = CUBLAS_FILL_MODE_UPPER; \ |
| 186 |
else \ |
| 187 |
uplo_ = CUBLAS_FILL_MODE_LOWER; \ |
| 188 |
} \ |
| 189 |
\ |
| 190 |
if ((trans[0] == 'N') || (trans[0] == 'n')) \ |
| 191 |
trans_ = CUBLAS_OP_N; \ |
| 192 |
else if ((trans[0] == 'T') || (trans[0] == 't')) \ |
| 193 |
trans_ = CUBLAS_OP_T; \ |
| 194 |
else \ |
| 195 |
trans_ = CUBLAS_OP_C; \ |
| 196 |
if ((diag[0] == 'U') || (diag[0] == 'u')) \ |
| 197 |
diag_ = CUBLAS_DIAG_UNIT; \ |
| 198 |
else \ |
| 199 |
diag_ = CUBLAS_DIAG_NON_UNIT; \ |
| 200 |
\ |
| 201 |
KokkosBlas::Impl::CudaBlasSingleton& s = KokkosBlas::Impl::CudaBlasSingleton::singleton(); \ |
| 202 |
KOKKOSBLAS_IMPL_CUBLAS_SAFE_CALL(cublasSetStream(s.handle, space.cuda_stream())); \ |
| 203 |
if (A_is_layout_left) { \ |
| 204 |
KOKKOSBLAS_IMPL_CUBLAS_SAFE_CALL(CUBLAS_FN( \ |
| 205 |
s.handle, side_, uplo_, trans_, diag_, M, N, reinterpret_cast<const CUDA_SCALAR_TYPE*>(&alpha), \ |
| 206 |
reinterpret_cast<const CUDA_SCALAR_TYPE*>(A.data()), LDA, reinterpret_cast<CUDA_SCALAR_TYPE*>(B.data()), \ |
| 207 |
LDB, reinterpret_cast<CUDA_SCALAR_TYPE*>(B.data()), LDB)); \ |
| 208 |
} else { \ |
| 209 |
KOKKOSBLAS_IMPL_CUBLAS_SAFE_CALL(CUBLAS_FN( \ |
| 210 |
s.handle, side_, uplo_, trans_, diag_, N, M, reinterpret_cast<const CUDA_SCALAR_TYPE*>(&alpha), \ |
| 211 |
reinterpret_cast<const CUDA_SCALAR_TYPE*>(A.data()), LDA, reinterpret_cast<CUDA_SCALAR_TYPE*>(B.data()), \ |
| 212 |
LDB, reinterpret_cast<CUDA_SCALAR_TYPE*>(B.data()), LDB)); \ |
| 213 |
} \ |
| 214 |
KOKKOSBLAS_IMPL_CUBLAS_SAFE_CALL(cublasSetStream(s.handle, NULL)); \ |
| 215 |
Kokkos::Profiling::popRegion(); \ |
| 216 |
} \ |
| 217 |
}; |
| 218 |
|
| 219 |
#define KOKKOSBLAS3_DTRMM_CUBLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 220 |
KOKKOSBLAS3_TRMM_CUBLAS(double, double, cublasDtrmm, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 221 |
|
| 222 |
#define KOKKOSBLAS3_STRMM_CUBLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 223 |
KOKKOSBLAS3_TRMM_CUBLAS(float, float, cublasStrmm, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 224 |
|
| 225 |
#define KOKKOSBLAS3_ZTRMM_CUBLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 226 |
KOKKOSBLAS3_TRMM_CUBLAS(Kokkos::complex<double>, cuDoubleComplex, cublasZtrmm, LAYOUTA, LAYOUTB, MEM_SPACE, \ |
| 227 |
ETI_SPEC_AVAIL) |
| 228 |
|
| 229 |
#define KOKKOSBLAS3_CTRMM_CUBLAS(LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) \ |
| 230 |
KOKKOSBLAS3_TRMM_CUBLAS(Kokkos::complex<float>, cuComplex, cublasCtrmm, LAYOUTA, LAYOUTB, MEM_SPACE, ETI_SPEC_AVAIL) |
| 231 |
|
| 232 |
// Explicitly define the TRMM class for all permutations listed below |
| 233 |
|
| 234 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, true) |
| 235 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, false) |
| 236 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, true) |
| 237 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, false) |
| 238 |
|
| 239 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, true) |
| 240 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, false) |
| 241 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, true) |
| 242 |
KOKKOSBLAS3_DTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, false) |
| 243 |
|
| 244 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, true) |
| 245 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, false) |
| 246 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, true) |
| 247 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, false) |
| 248 |
|
| 249 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, true) |
| 250 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, false) |
| 251 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, true) |
| 252 |
KOKKOSBLAS3_STRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, false) |
| 253 |
|
| 254 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, true) |
| 255 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, false) |
| 256 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, true) |
| 257 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, false) |
| 258 |
|
| 259 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, true) |
| 260 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, false) |
| 261 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, true) |
| 262 |
KOKKOSBLAS3_ZTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, false) |
| 263 |
|
| 264 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, true) |
| 265 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaSpace, false) |
| 266 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, true) |
| 267 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaSpace, false) |
| 268 |
|
| 269 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, true) |
| 270 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutLeft, Kokkos::LayoutLeft, Kokkos::CudaUVMSpace, false) |
| 271 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, true) |
| 272 |
KOKKOSBLAS3_CTRMM_CUBLAS(Kokkos::LayoutRight, Kokkos::LayoutRight, Kokkos::CudaUVMSpace, false) |
| 273 |
|
| 274 |
} // namespace Impl |
| 275 |
} // namespace KokkosBlas |
| 276 |
#endif // KOKKOSKERNELS_ENABLE_TPL_CUBLAS |
| 277 |
|
| 278 |
#endif // KOKKOSBLAS3_TRMM_TPL_SPEC_DECL_HPP_ |