Skip to main content

Module compat

Module compat 

Source
Expand description

Drop-in compatibility shims mirroring vendor sparse-library APIs.

The submodules here expose function and handle signatures shaped after well-known sparse libraries so that code written against those APIs can be ported to OxiCUDA with minimal churn. They are thin, idiomatic-Rust wrappers over the crate’s own host-resident sparse kernels: every routine returns a SparseResult, validates its arguments, and never exposes raw pointers or unsafe.

  • cusparse_compat – a cuSPARSE-flavoured surface (cusparse_spmv, cusparse_spgemm, cusparse_spsv) over HostCsr.

Re-exports§

pub use cusparse_compat::CusparseCompatHandle;
pub use cusparse_compat::CusparsePointerMode;
pub use cusparse_compat::cusparse_spgemm;
pub use cusparse_compat::cusparse_spmv;
pub use cusparse_compat::cusparse_spsv;

Modules§

cusparse_compat
cuSPARSE-compatible API shim over the crate’s host sparse kernels.