Skip to main content

Module cusolver

Module cusolver 

Source
Expand description

Crate-private FFI thunks around cudarc::cusolver::sys.

cudarc 0.19’s safe layer covers handle construction (DnHandle, SpHandle) but leaves every dense / sparse / batched factorisation behind raw extern "C" declarations under cusolver::sys::lib. The SolverScalar trait lifts the per-prefix C entry points (Sgeqrf, Dgeqrf, …) onto a uniform Rust surface so the actor’s per-op handlers can be written generically over T: SolverSupported.

All unsafe FFI is contained inside this module — handlers in kernel::solver::* only see the typed wrappers and a single status_to_result adapter.

Constants§

LIB

Traits§

SolverScalar
Per-dtype dispatcher to the cuSOLVER S/D/C/Z entry points.

Functions§

status_to_result
Translate a cusolverStatus_t into our typed error.