Skip to content

Commit

Permalink
Implement cusparseXcoo2csr.
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Mar 20, 2024
1 parent cd1e0a3 commit f52edbd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions zluda_sparse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,25 @@ unsafe fn csr2cscex2(
))
}

unsafe fn xcoo2csr(
handle: *mut cusparseContext,
coo_row_ind: *const i32,
nnz: i32,
m: i32,
csr_sorted_row_ptr: *mut i32,
idx_base: cusparseIndexBase_t,
) -> cusparseStatus_t {
let idx_base = index_base(idx_base);
to_cuda(rocsparse_coo2csr(
handle.cast(),
coo_row_ind,
nnz,
m,
csr_sorted_row_ptr,
idx_base,
))
}

unsafe fn destory_dnvec(dn_vec_descr: *mut cusparseDnVecDescr) -> cusparseStatus_t {
if dn_vec_descr == ptr::null_mut() {
cusparseStatus_t::CUSPARSE_STATUS_SUCCESS
Expand Down

0 comments on commit f52edbd

Please sign in to comment.