cusparse Class Reference#
|
Reference API
|
gko::matrix::Csr< ValueType, IndexType >::cusparse Class Reference
#include <ginkgo/core/matrix/csr.hpp>
Inheritance diagram for gko::matrix::Csr< ValueType, IndexType >::cusparse:
Public Member Functions | |
| cusparse () | |
| void | process (const array< index_type > &mtx_row_ptrs, array< index_type > *mtx_srow) override |
| int64_t | clac_size (const int64_t nnz) override |
| std::shared_ptr< strategy_type > | copy () override |
Public Member Functions inherited from gko::matrix::Csr< ValueType, IndexType >::strategy_type | |
| strategy_type (std::string name) | |
| std::string | get_name () |
Additional Inherited Members | |
Protected Member Functions inherited from gko::matrix::Csr< ValueType, IndexType >::strategy_type | |
| void | set_name (std::string name) |
Detailed Description
template<typename ValueType = default_precision, typename IndexType = int32>
class gko::matrix::Csr< ValueType, IndexType >::cusparse
class gko::matrix::Csr< ValueType, IndexType >::cusparse
cusparse is a strategy_type which uses the sparselib csr.
- Note
- cusparse is also known to the hip executor which converts between cuda and hip.
Constructor & Destructor Documentation
◆ cusparse()
template<typename ValueType = default_precision, typename IndexType = int32>
|
inline |
Creates a cusparse strategy.
Member Function Documentation
◆ clac_size()
template<typename ValueType = default_precision, typename IndexType = int32>
|
inlineoverridevirtual |
Computes the srow size according to the number of nonzeros.
- Parameters
-
nnz the number of nonzeros
- Returns
- the size of srow
Implements gko::matrix::Csr< ValueType, IndexType >::strategy_type.
◆ copy()
template<typename ValueType = default_precision, typename IndexType = int32>
|
inlineoverridevirtual |
Copy a strategy. This is a workaround until strategies are revamped, since strategies like automatical do not work when actually shared.
Implements gko::matrix::Csr< ValueType, IndexType >::strategy_type.
◆ process()
template<typename ValueType = default_precision, typename IndexType = int32>
|
inlineoverridevirtual |
Computes srow according to row pointers.
- Parameters
-
mtx_row_ptrs the row pointers of the matrix mtx_srow the srow of the matrix
Implements gko::matrix::Csr< ValueType, IndexType >::strategy_type.
The documentation for this class was generated from the following file:
- ginkgo/core/matrix/csr.hpp
Generated by
Public Member Functions inherited from