1#ifndef included_AMP_SpGEMM_Hip
2#define included_AMP_SpGEMM_Hip
4#include "AMP/utils/hip/Helper_Hip.h"
6#include <rocsparse/rocsparse.h>
17template<
typename row
idx_t,
typename col
idx_t,
typename scalar_t>
22 static_assert( std::is_same_v<rowidx_t, int> || std::is_same_v<rowidx_t, long long> );
23 static_assert( std::is_same_v<colidx_t, int> || std::is_same_v<colidx_t, long long> );
24 static_assert( std::is_same_v<scalar_t, float> || std::is_same_v<scalar_t, double> );
34 static_assert( std::is_same_v<rowidx_t, colidx_t> );
54 void compute( rowidx_t *C_rs, colidx_t *C_cols, scalar_t *C_vals );
70 rocsparse_spmat_descr
matA;
71 rocsparse_spmat_descr
matB;
72 rocsparse_spmat_descr
matC;
73 rocsparse_spmat_descr
matD;
void compute(rowidx_t *C_rs, colidx_t *C_cols, scalar_t *C_vals)
VendorSpGEMM(const int64_t M_, const int64_t N_, const int64_t K_, const int64_t A_nnz, rowidx_t *A_rs, colidx_t *A_cols, scalar_t *A_vals, const int64_t B_nnz, rowidx_t *B_rs, colidx_t *B_cols, scalar_t *B_vals, rowidx_t *C_rs)
rocsparse_spmat_descr matC
rocsparse_indextype jtype
rocsparse_spmat_descr matD
rocsparse_indextype itype
rocsparse_spmat_descr matA
rocsparse_spmat_descr matB