-
Notifications
You must be signed in to change notification settings - Fork 227
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
Multiplication with a symmetrically wrapped CuSparseMatrix returns wrong answer #2572
Comments
We don't have GPU routines specialized for symmetric matrices. The sparse matrix is just unwrapped from |
Yeah, I followed the multiplication and found that a I've looked a little into the cuSPARSE documentation, and it does seem like a symmetric type is available and even part of CUSPARSE through |
I agree that it's not optimal but it is not supported by any GPU library (to the best of my knowledge). I never wanted to add methods with I checked your type in the CUDA documentation (https://docs.nvidia.com/cuda/cusparse/index.html?highlight=CUSPARSE_MATRIX_TYPE_SYMMETRIC#cusparsematrixtype-t), it part of the legacy API that we removed since a long time here. |
@mipals I confirm that it is not supported by the new API and it was also not supported for sparse matrix-vector and matrix-matrix products with the legacy API: |
Ahh, I did not realize that it was only part of the legacy API - and that it was not even supported then. Thats a shame. Thanks for investigating! I guess I can do it "manually" then as the mat-vecs for both the matrix the transpose is supported. In this case I would need to remove one of the diagonals, however it seems as the standard |
We never implemented a kernel for |
Describe the bug
Multiplication with a symmetrically wrapped CuSparseMatrix outputs the multiplication with the CuSparseMatrix itself and not the symmetric matrix.
To reproduce
The Minimal Working Example (MWE) for this bug:
Manifest.toml
Expected behavior
I expected the behaviour to be similar to the CPU version.
Version info
Details on Julia:
Details on CUDA:
The text was updated successfully, but these errors were encountered: