Skip to content

Commit

Permalink
Take string as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbiessy committed Jul 18, 2024
1 parent 6b4678f commit 75b4c4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ inline auto get_cuda_spmv_alg(spmv_alg alg) {
}
}

void check_valid_spmv(const std::string function_name, sycl::queue &queue,
void check_valid_spmv(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::transpose opA, oneapi::mkl::sparse::matrix_view A_view,
oneapi::mkl::sparse::matrix_handle_t A_handle,
oneapi::mkl::sparse::dense_vector_handle_t x_handle,
Expand Down
2 changes: 1 addition & 1 deletion src/sparse_blas/backends/mkl_common/mkl_spmm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sycl::event release_spmm_descr(sycl::queue &queue, oneapi::mkl::sparse::spmm_des
return detail::collapse_dependencies(queue, dependencies);
}

void check_valid_spmm(const std::string function_name, sycl::queue &queue,
void check_valid_spmm(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::transpose opA, oneapi::mkl::sparse::matrix_view A_view,
oneapi::mkl::sparse::matrix_handle_t A_handle,
oneapi::mkl::sparse::dense_matrix_handle_t B_handle,
Expand Down
2 changes: 1 addition & 1 deletion src/sparse_blas/backends/mkl_common/mkl_spsv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sycl::event release_spsv_descr(sycl::queue &queue, oneapi::mkl::sparse::spsv_des
return detail::collapse_dependencies(queue, dependencies);
}

void check_valid_spsv(const std::string function_name, sycl::queue &queue,
void check_valid_spsv(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::sparse::matrix_view A_view,
oneapi::mkl::sparse::matrix_handle_t A_handle,
oneapi::mkl::sparse::dense_vector_handle_t x_handle,
Expand Down
6 changes: 3 additions & 3 deletions src/sparse_blas/common_op_verification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void check_ptr_is_host_accessible(const std::string &function_name, const std::s
}

template <typename InternalSparseMatHandleT>
void check_valid_spmm_common(const std::string function_name, sycl::queue &queue,
void check_valid_spmm_common(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::sparse::matrix_view A_view,
InternalSparseMatHandleT internal_A_handle,
oneapi::mkl::sparse::dense_matrix_handle_t B_handle,
Expand Down Expand Up @@ -82,7 +82,7 @@ void check_valid_spmm_common(const std::string function_name, sycl::queue &queue
}

template <typename InternalSparseMatHandleT>
void check_valid_spmv_common(const std::string function_name, sycl::queue &queue,
void check_valid_spmv_common(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::transpose opA, oneapi::mkl::sparse::matrix_view A_view,
InternalSparseMatHandleT internal_A_handle,
oneapi::mkl::sparse::dense_vector_handle_t x_handle,
Expand Down Expand Up @@ -124,7 +124,7 @@ void check_valid_spmv_common(const std::string function_name, sycl::queue &queue
}

template <typename InternalSparseMatHandleT>
void check_valid_spsv_common(const std::string function_name, sycl::queue &queue,
void check_valid_spsv_common(const std::string &function_name, sycl::queue &queue,
oneapi::mkl::sparse::matrix_view A_view,
InternalSparseMatHandleT internal_A_handle,
oneapi::mkl::sparse::dense_vector_handle_t x_handle,
Expand Down

0 comments on commit 75b4c4a

Please sign in to comment.