My Project
Loading...
Searching...
No Matches
Opm::gpuistl::detail::CuBlasHandle Class Reference

The CuBlasHandle class provides a singleton for the simulator universal cuBlasHandle. More...

#include <CuBlasHandle.hpp>

Public Member Functions

 CuBlasHandle (const CuBlasHandle &)=delete
 
CuBlasHandleoperator= (const CuBlasHandle &)=delete
 
 ~CuBlasHandle ()
 Calls cublasDestroy() on the handle.
 
cublasHandle_t get ()
 get returns the underlying cuBlas handle (to be used in calls to cublas)
 

Static Public Member Functions

static CuBlasHandlegetInstance ()
 getInstance creates (if necessary) and returns the single unique instance of CuBlasHandle (singleton)
 

Detailed Description

The CuBlasHandle class provides a singleton for the simulator universal cuBlasHandle.

Example use:

#include <opm/simulators/linalg/gpuistl/detail/CuBlasHandle.hpp>
void someFunction() {
int cuBlasVersion = -1;
OPM_CUBLAS_SAFE_CALL(cublasGetVersion(cublasHandle.get(), &cuBlasVersion));
}
static CuBlasHandle & getInstance()
getInstance creates (if necessary) and returns the single unique instance of CuBlasHandle (singleton)
Definition CuBlasHandle.cpp:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242

The documentation for this class was generated from the following files: