Skip to content

Can pytorch add sparse linear solvers like scipy.sparse.linalg.gmres, scipy.sparse.linalg.bicg etc. #133676

@liuqi45

Description

@liuqi45

🚀 The feature, motivation and pitch

I am a compute fluid dynamic software developer. Pytorch really helped me for using GPU to accelerate computing. However, in compute fluid dynamic or other mechanics domain, we usually store coefficients matrix in sparse format like CSR and solve the linear equation systems. I wondering if pytorch can develop a sparse solver which input the sparse coefficients matrix with a dense vector for the right hand of equations and output a dense vector represent the solve. In scipy there are already such solvers, but it does not support gpu acceleration. I hope pytorch can add such solvers.

Alternatives

No response

Additional context

No response

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @jianyuh @mruberry @walterddr @xwang233 @lezcano

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: linear algebraIssues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmulmodule: sparseRelated to torch.sparsetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions