Skip to content

cusparseCreateCoo wrappers with create_descriptor #2833

Description

@aamijar

RAFT provides a layer of abstraction on top of cusparse.
In this case, we specifically need to a function overload for create_descriptor in cusparse_utils.hpp

template <typename ValueType, typename RowType, typename ColType, typename NZType>
cusparseSpMatDescr_t create_descriptor(
  raft::device_coo_matrix_view<ValueType, RowType, ColType, NZType> sparse_view);

Then we need to add the expose the cusparse api in cusparse_wrappers.h

template <typename ValueT, typename RowIndicesType, typename ColIndicesType>
cusparseStatus_t cusparsecreatecoo(cusparseSpMatDescr_t* spMatDescr,
                                   int64_t rows,
                                   int64_t cols,
                                   int64_t nnz,
                                   RowIndicesType* cooRowInd,
                                   ColIndicesType* cooColInd,
                                   ValueT* cooValues);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions