Expand description
Thin safe-ish wrappers over cudarc::cusparse::sys entry points
Phase 4 needs but the safe layer doesn’t provide.
Every wrapper:
- Translates a
cusparseStatus_tinto acrate::error::GpuError::LibraryErrortagged"cusparse". - Funnels
cusparseDestroy*calls into aDropso descriptors do not leak when an error short-circuits the pipeline.
Higher-level orchestration (descriptor caches, workspace pooling)
lives in crate::kernel::sparse.
Structs§
- DnMat
Guard - RAII guard for a
cusparseDnMatDescr_t. - DnVec
Guard - RAII guard for a
cusparseDnVecDescr_t. - SpGemm
Desc Guard - RAII guard for a
cusparseSpGEMMDescr_t. - SpMat
Guard - RAII guard for a
cusparseSpMatDescr_t. - SpSv
Desc Guard - RAII guard for a
cusparseSpSVDescr_t.
Enums§
- Sddmm
Alg - Algorithm tag for
cusparseSDDMM. - SpGemm
Alg - Algorithm tag for
cusparseSpGEMM. - SpMmAlg
- Algorithm tag for
cusparseSpMM. - SpMvAlg
- Algorithm tag to use for
cusparseSpMV. Public sokernel/sparse/spmv.rscan plumb it through the request struct in a future phase. - SpSvAlg
- Algorithm tag for
cusparseSpSV.
Functions§
- ok
- Convert a cuSPARSE status into a
Result<(), GpuError>.