19#ifndef CUSPARSERESOURCE_HPP
20#define CUSPARSERESOURCE_HPP
57 using CreatorType =
typename std::function<cusparseStatus_t(T*)>;
58 using DeleterType =
typename std::function<cusparseStatus_t(T)>;
94 DeleterType m_deleter;
98#include <opm/simulators/linalg/gpuistl/detail/CuSparseResource_impl.hpp>
The CuSparseResource class wraps a CuSparse resource in a proper RAII pattern.
Definition CuSparseResource.hpp:55
T get()
get returns the raw pointer to the resource.
Definition CuSparseResource.hpp:86
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