Add cuDSS-style block CSR interface for solver creation#9
Add cuDSS-style block CSR interface for solver creation#9robtaylor wants to merge 1 commit intofacebookresearch:mainfrom
Conversation
Introduces a new API for creating solvers from block CSR matrices, modeled after NVIDIA's cuDSS library interface: - CsrTypes.h: Enums for MatrixType, MatrixView, IndexBase, IndexType - CsrSolver.h/.cpp: BlockCsrDescriptor and createSolverFromBlockCsr() - Solver.h/.cpp: loadFromCsr() and extractToCsr() for value loading - CsrSolverTest.cpp: Unit tests covering structure conversion, index types, base handling, and full factor+solve workflow The block CSR interface provides a natural entry point for users with existing sparse matrix data, supporting both int32 and int64 indices, zero and one-based indexing, and lower/upper triangular views. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude claude-opus-4-5-20251101
|
Hi @robtaylor! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Summary
Adds a cuDSS-style CSR interface for creating solvers from block CSR matrices:
New Files
MatrixType,MatrixView,IndexBase,IndexTypeBlockCsrDescriptorstruct andcreateSolverFromBlockCsr()functionAPI
Features
loadFromCsr()/extractToCsr()for value mapping with permutation handlingTests
8 unit tests covering:
Dependencies
None - this PR is independent and can be merged at any time.
Test Plan
🤖 Generated with Claude Code