Repository navigation
Fix sizes of allocated U, V for Jacobi on CUDA - #314
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
| Ṽ = (jobz == 'V') ? similar(Vᴴ') : similar(Vᴴ, (n, minmn)) | ||
| Ũ = (jobz == 'V') ? U : similar(U, (m, minmn)) | ||
| Ṽ = (jobz == 'V') ? similar(Vᴴ') : similar(Vᴴ, (n, n)) | ||
| Ũ = (jobz == 'V') ? U : similar(U, (m, m)) |
There was a problem hiding this comment.
If I read the CUDA gesvdj documentation correctly, this could have been solved by setting econ = 1 also in the jobz = 'N' case, i.e. change line 217 above. It would be strange to need larger U and V matrices when not computing singular vectors at all, then in the case where we do compute them in economic mode.
There was a problem hiding this comment.
It's really not clear from their documentation which also states that "U is an mxm unitary matrix, and V is an nxn unitary matrix". Should I try a followup PR setting econ = 1?
There was a problem hiding this comment.
I tend to trust the argument / API description, i.e. https://docs.nvidia.com/cuda/cusolver/index.html#id156 , though I think there have been cases where this trust was violated in the past 😄 .
I think this is causing some silent overrun errors for the
jobz = 'N'case which are showing up in PEPSKit.