Opm::cuistl::detail::CuBlasHandle Class Reference The CuBlasHandle class provides a singleton for the simulator universal cuBlasHandle. More...
Detailed DescriptionThe CuBlasHandle class provides a singleton for the simulator universal cuBlasHandle. Example use: void someFunction() {
auto& cublasHandle = ::Opm::cuistl::detail::CuBlasHandle::getInstance();
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) #define OPM_CUBLAS_SAFE_CALL(expression) OPM_CUBLAS_SAFE_CALL checks the return type of the cublas expression (function call) and throws an ex... Definition: cublas_safe_call.hpp:196 Constructor & Destructor Documentation◆ CuBlasHandle()
◆ ~CuBlasHandle()
Calls cublasDestroy() on the handle Member Function Documentation◆ get()
get returns the underlying cuBlas handle (to be used in calls to cublas) ◆ getInstance()
getInstance creates (if necessary) and returns the single unique instance of CuBlasHandle (singleton) ◆ operator=()
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||