Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 64-bit indices support to csrmm2 #58899

Closed
Tracked by #60854
aocsa opened this issue May 25, 2021 · 1 comment
Closed
Tracked by #60854

Add 64-bit indices support to csrmm2 #58899

aocsa opened this issue May 25, 2021 · 1 comment
Assignees
Labels
module: sparse Related to torch.sparse open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@aocsa
Copy link
Contributor

aocsa commented May 25, 2021

Motivation

NVIDIA documentation mentions that with cusparseSpMM cuSparse API CUSPARSE_INDEX_64I can be used with CUSPARSE_SPMM_CSR_ALG2/CUSPARSE_SPMM_CSR_ALG3 options, currently it uses CUSPARSE_CSRMM_ALG1.

See: https://docs.nvidia.com/cuda/cusparse/index.html

Support for 64-bit indices will improve performance if csrmm2 could work also with int64_t csr indices.

template<> void csrmm2<float>(

The task boils down to generalizing template<typename T> void _csrmm2... to template<typename T, typename I> void _csrmm2 where I is index type.

cc @aocsa @nikitaved @pearu @mruberry @IvanYashchuk

@aocsa aocsa added this to To do in Sparse tensors via automation May 25, 2021
@aocsa aocsa added module: sparse Related to torch.sparse open source labels May 25, 2021
@gchanan gchanan added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 25, 2021
@IvanYashchuk IvanYashchuk self-assigned this Jul 6, 2021
@pearu pearu moved this from To do to To Do: CSR in Sparse tensors Aug 10, 2021
@IvanYashchuk
Copy link
Collaborator

torch.addmm now works without conversions with both 32-bit and 64-bit indices with #60838.

Sparse tensors automation moved this from To Do: CSR to Done Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: sparse Related to torch.sparse open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
Development

No branches or pull requests

3 participants