Skip to content

Commit

Permalink
Improve function name in exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbiessy committed Sep 4, 2024
1 parent 74b3063 commit 1ca0cc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/sparse_blas/backends/mkl_common/mkl_spmm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ inline void common_spmm_optimize(
oneapi::mkl::sparse::spmm_descr_t spmm_descr) {
bool is_alpha_host_accessible = detail::is_ptr_accessible_on_host(queue, alpha);
bool is_beta_host_accessible = detail::is_ptr_accessible_on_host(queue, beta);
check_valid_spmm(__func__, opA, A_view, A_handle, B_handle, C_handle, is_alpha_host_accessible,
is_beta_host_accessible);
check_valid_spmm("spmm_optimize", opA, A_view, A_handle, B_handle, C_handle,
is_alpha_host_accessible, is_beta_host_accessible);
if (!spmm_descr->buffer_size_called) {
throw mkl::uninitialized("sparse_blas", __func__,
throw mkl::uninitialized("sparse_blas", "spmm_optimize",
"spmm_buffer_size must be called before spmm_optimize.");
}
spmm_descr->optimized_called = true;
Expand Down
6 changes: 3 additions & 3 deletions src/sparse_blas/backends/mkl_common/mkl_spmv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ inline void common_spmv_optimize(sycl::queue &queue, oneapi::mkl::transpose opA,
oneapi::mkl::sparse::spmv_descr_t spmv_descr) {
bool is_alpha_host_accessible = detail::is_ptr_accessible_on_host(queue, alpha);
bool is_beta_host_accessible = detail::is_ptr_accessible_on_host(queue, beta);
check_valid_spmv(__func__, opA, A_view, A_handle, x_handle, y_handle, is_alpha_host_accessible,
is_beta_host_accessible);
check_valid_spmv("spmv_optimize", opA, A_view, A_handle, x_handle, y_handle,
is_alpha_host_accessible, is_beta_host_accessible);
if (!spmv_descr->buffer_size_called) {
throw mkl::uninitialized("sparse_blas", __func__,
throw mkl::uninitialized("sparse_blas", "spmv_optimize",
"spmv_buffer_size must be called before spmv_optimize.");
}
spmv_descr->optimized_called = true;
Expand Down
6 changes: 3 additions & 3 deletions src/sparse_blas/backends/mkl_common/mkl_spsv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ inline void common_spsv_optimize(sycl::queue &queue, oneapi::mkl::transpose opA,
oneapi::mkl::sparse::spsv_alg alg,
oneapi::mkl::sparse::spsv_descr_t spsv_descr) {
bool is_alpha_host_accessible = detail::is_ptr_accessible_on_host(queue, alpha);
check_valid_spsv(__func__, opA, A_view, A_handle, x_handle, y_handle, is_alpha_host_accessible,
alg);
check_valid_spsv("spsv_optimize", opA, A_view, A_handle, x_handle, y_handle,
is_alpha_host_accessible, alg);
if (!spsv_descr->buffer_size_called) {
throw mkl::uninitialized("sparse_blas", __func__,
throw mkl::uninitialized("sparse_blas", "spsv_optimize",
"spsv_buffer_size must be called before spsv_optimize.");
}
spsv_descr->optimized_called = true;
Expand Down

0 comments on commit 1ca0cc4

Please sign in to comment.