20#include <opm/common/ErrorMacros.hpp>
21#include <opm/simulators/linalg/gpuistl/detail/cusparse_safe_call.hpp>
29 struct CuSparseDeleteAndCreate {
66 using DeleterType =
typename CuSparseResource<cusparseMatDescr_t>::DeleterType;
67 using CreatorType =
typename CuSparseResource<cusparseMatDescr_t>::CreatorType;
87 OPM_CUSPARSE_SAFE_CALL(
creator(&m_resource));
101 OPM_CUSPARSE_WARN_IF_ERROR(m_deleter(m_resource));
The CuSparseResource class wraps a CuSparse resource in a proper RAII pattern.
Definition CuSparseResource.hpp:55
CuSparseResource()
CuSparseResource will automatically select the proper creator and deleter based on the type (and thro...
Definition CuSparseResource_impl.hpp:91
~CuSparseResource()
Calls the deleter functor.
Definition CuSparseResource_impl.hpp:97
Contains wrappers to make the CuBLAS library behave as a modern C++ library with function overlading.
Definition autotuner.hpp:29
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242