Nektar++
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
CuBlasLt.hpp File Reference
#include <LibUtilities/LinearAlgebra/NekBlas/NekBlas.hpp>
#include <LibUtilities/Backends/CUDAStream.hpp>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <string>
#include <type_traits>
#include <cublasLt.h>

Go to the source code of this file.

Namespaces

namespace  Nektar
 
namespace  Nektar::NekBlas
 
namespace  Nektar::NekBlas::detail
 

Macros

#define CUBLAS_CHECK(condition)
 

Functions

cublasLtHandle_t Nektar::NekBlas::detail::GetCuBlasLtHandle ()
 
cublasLtMatrixLayout_t Nektar::NekBlas::detail::CreateCuBlasLtLayout (const cudaDataType_t dataType, const cublasOperation_t trans, const int M, const int N, const int ld, const int stride, const int batchSize)
 
template<typename TData >
void Nektar::NekBlas::detail::CuBlasLtGeamStridedBatched (Handle< NektarSpaces::Device > handle, std::string transposeA, std::string transposeB, const int M, const int N, const TData alpha, const TData *a, const int lda, const int strideA, const TData beta, const TData *b, const int ldb, const int strideB, TData *c, const int ldc, const int strideC, const int batchSize)
 

Macro Definition Documentation

◆ CUBLAS_CHECK

#define CUBLAS_CHECK (   condition)
Value:
{ \
const cublasStatus_t status = condition; \
if (status != CUBLAS_STATUS_SUCCESS) \
{ \
std::cerr << "cuBLAS error encountered: \"" \
<< cublasGetStatusString(status) << "\" at " << __FILE__ \
<< ':' << __LINE__ << std::endl; \
exit(0); \
} \
}

Definition at line 50 of file CuBlasLt.hpp.

51 { \
52 const cublasStatus_t status = condition; \
53 if (status != CUBLAS_STATUS_SUCCESS) \
54 { \
55 std::cerr << "cuBLAS error encountered: \"" \
56 << cublasGetStatusString(status) << "\" at " << __FILE__ \
57 << ':' << __LINE__ << std::endl; \
58 exit(0); \
59 } \
60 }