Skip to content

how to implement batch spmv #210

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

Open
zhouq123 opened this issue Aug 18, 2024 · 6 comments
Open

how to implement batch spmv #210

zhouq123 opened this issue Aug 18, 2024 · 6 comments
Assignees
Labels

Comments

@zhouq123
Copy link

i have batch matrix A and vector B, how to implement batch spmv

@qanhpham
Copy link
Contributor

Hi @zhouq123, are matrices in the batch different from each other? Do they multiply with the same vector or vectors are different in the batch?

@fbusato
Copy link
Collaborator

fbusato commented Aug 19, 2024

please also note that the code should be similar to batched SpMM https://github.com/NVIDIA/CUDALibrarySamples/tree/master/cuSPARSE/spmm_csr_batched

@zhouq123
Copy link
Author

Hi @zhouq123, are matrices in the batch different from each other? Do they multiply with the same vector or vectors are different in the batch?

yes, they are all different from each other

@zhouq123
Copy link
Author

please also note that the code should be similar to batched SpMM https://github.com/NVIDIA/CUDALibrarySamples/tree/master/cuSPARSE/spmm_csr_batched

but there is an error "spmm_csr_batched_example test FAILED: wrong result" when I set B_num_cols to 1 in the example of spmm_csr_batched or spmm_coo_batched

@qanhpham
Copy link
Contributor

This bug has been fixed in the latest version. Please upgraded to the latest cuSPARSE to avoid this issue.

@zhouq123
Copy link
Author

This bug has been fixed in the latest version. Please upgraded to the latest cuSPARSE to avoid this issue.

the latest version is cuda toolkit or CUDALibrarySamples? I had upgraded to the latest CUDALibrarySamples but this issue is still exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants