-
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
CuSparseMatrix - CuMatrix multiplication not working: giving Scalar Indexing #2072
Comments
@dkarrasch |
I'm not sure. There's CUDA.jl/lib/cusparse/interfaces.jl Lines 73 to 77 in c97bc77
so we would need the stacktrace to see how dispatch goes and where it deviates from the expected path. It could be that I missed some VERSION-dependent branching, though. |
I played with it a little locally, but it seems like it should run by |
@dkarrasch @lgravina1997 |
True. So, to confirm, for float types everything works as expected @lgravina1997? |
Running into this same error currently, while trying to speed up some expensive jacobian calculations. Here's my MWE and full stack trace:
Stacktrace:
julia version info:
CUDA version info
|
Also while looking into this, I noticed it might be possible that the mul! tests in the CUSPARSE tests are not catching the CuSparseMatrixCSC * CuSparseMatrixCSC case explicitly leading to this error slipping through the cracks |
Same error, same cause: #2072 (comment) What happens if you turn your |
Actually, I believe this is just a display error. The calculation seems to be fine if I'm reading it correctly. |
But this is just an error in the |
Yup you're right I read it too hastily. Its a bit strange. I ran a couple other tests closer to what I'm using in my actual jacobian calc and adding the 1.0 in front seems to fix things at least at first glance? |
A, B and C must have the same type. I don't understand why the result is |
I'd guess so. The specialized |
Here's the type check from the example with 1.0I
|
Do you have the same error with the |
Multiplication seems to be fine with CuSparseMatrixCSR format with my related case. My CUDA toolkit is version 12.1 (full version info is above). However, I went back and ran the original code from this issue and found it was creating some very weird behavior:
|
Multiplying a CuSparseMatrixCSC with a CuArray gives Scalar indexing.
To reproduce:
or
Both give the same problem of course.
Version info
Details on Julia:
The text was updated successfully, but these errors were encountered: