oxicuda_sparse/compat/mod.rs
1//! Drop-in compatibility shims mirroring vendor sparse-library APIs.
2//!
3//! The submodules here expose function and handle signatures shaped after
4//! well-known sparse libraries so that code written against those APIs can be
5//! ported to OxiCUDA with minimal churn. They are thin, idiomatic-Rust wrappers
6//! over the crate's own host-resident sparse kernels: every routine returns a
7//! [`SparseResult`](crate::error::SparseResult), validates its arguments, and
8//! never exposes raw pointers or `unsafe`.
9//!
10//! - [`cusparse_compat`] -- a cuSPARSE-flavoured surface (`cusparse_spmv`,
11//! `cusparse_spgemm`, `cusparse_spsv`) over [`HostCsr`](crate::host_csr::HostCsr).
12
13pub mod cusparse_compat;
14
15pub use cusparse_compat::{
16 CusparseCompatHandle, CusparsePointerMode, cusparse_spgemm, cusparse_spmv, cusparse_spsv,
17};