You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs state, that "rocsparse_spsv_solve solves a sparse triangular linear system ...". Calling the rocsparse_spsv with a triangular sparse matrix (that is, a rocsparse_spmat_descr where I set the attribute rocsparse_spmat_matrix_type to rocsparse_matrix_type_triangular) should work without issues and not return an error.
What actually happens
The function exits with error 2, corresponding to rocsparse_status_not_implemented.
How to reproduce
Probably not needed, will provide simple example if necessary
Environment
all
The most probable cause is e.g. this line of code, which makes the function accept only general matrices, triangular matrices fail with the error. This is present in other functions too.
Hipyfying (or roc-ifying) from cuSPARSE, where the matrix_type and storage_mode attributes do not exist at all, it might make sense to also accept general matrices. But it is weird that only general matrices are accepted. When working just with rocsparse, this behaviour is very unexpected. Why does the matrix_type attribute even exist, when using it breaks the code?
The text was updated successfully, but these errors were encountered:
What is the expected behavior
The docs state, that "rocsparse_spsv_solve solves a sparse triangular linear system ...". Calling the
rocsparse_spsv
with a triangular sparse matrix (that is, arocsparse_spmat_descr
where I set the attributerocsparse_spmat_matrix_type
torocsparse_matrix_type_triangular
) should work without issues and not return an error.What actually happens
The function exits with error 2, corresponding to
rocsparse_status_not_implemented
.How to reproduce
Probably not needed, will provide simple example if necessary
Environment
all
The most probable cause is e.g. this line of code, which makes the function accept only general matrices, triangular matrices fail with the error. This is present in other functions too.
Hipyfying (or roc-ifying) from cuSPARSE, where the matrix_type and storage_mode attributes do not exist at all, it might make sense to also accept general matrices. But it is weird that only general matrices are accepted. When working just with rocsparse, this behaviour is very unexpected. Why does the matrix_type attribute even exist, when using it breaks the code?
The text was updated successfully, but these errors were encountered: