Skip to content

Commit

Permalink
Map statuses CUSPARSE_STATUS_NOT_INITIALIZED and CUSPARSE_STATUS_MATR…
Browse files Browse the repository at this point in the history
…IX_TYPE_NOT_SUPPORTED
  • Loading branch information
Rbiessy committed Sep 13, 2024
1 parent 8173331 commit 9c16425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sparse_blas/backends/cusparse/cusparse_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ inline void check_status(cusparseStatus_t status, const std::string& function,
switch (status) {
case CUSPARSE_STATUS_NOT_SUPPORTED:
throw oneapi::mkl::unimplemented("sparse_blas", function, error_str);
case CUSPARSE_STATUS_NOT_INITIALIZED:
throw oneapi::mkl::uninitialized("sparse_blas", function, error_str);
case CUSPARSE_STATUS_INVALID_VALUE:
case CUSPARSE_STATUS_MATRIX_TYPE_NOT_SUPPORTED:
throw oneapi::mkl::invalid_argument("sparse_blas", function, error_str);
default: throw oneapi::mkl::exception("sparse_blas", function, error_str);
}
Expand Down

0 comments on commit 9c16425

Please sign in to comment.