Opm::cuistl::detail::CuSparseHandle Class Reference The CuSparseHandle class provides a singleton for the simulator universal cuSparseHandle. More...
Detailed DescriptionThe CuSparseHandle class provides a singleton for the simulator universal cuSparseHandle. Example use: void someFunction() {
auto& cuSparseHandle = ::Opm::cuistl::detail::CuSparseHandle::getInstance();
int cuSparseVersion = -1;
OPM_CUSPARSE_SAFE_CALL(cusparseGetVersion(cuSparseHandle.get(), &cuSparseVersion));
}
static CuSparseHandle & getInstance() getInstance creates (if necessary) and returns the single unique instance of CuSparseHandle (singleto... #define OPM_CUSPARSE_SAFE_CALL(expression) OPM_CUSPARSE_SAFE_CALL checks the return type of the cusparse expression (function call) and throws a... Definition: cusparse_safe_call.hpp:185 Constructor & Destructor Documentation◆ CuSparseHandle()
◆ ~CuSparseHandle()
Calls cuSparseDestroy on the handle Member Function Documentation◆ get()
get returns the underlying cuSparse handle (to be used in calls to cusparse) ◆ getInstance()
getInstance creates (if necessary) and returns the single unique instance of CuSparseHandle (singleton) ◆ operator=()
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||