Skip to content

Commit c41d09b

Browse files
Utilities take queue as const reference
1 parent 4766173 commit c41d09b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ sycl::event keep_args_alive(sycl::queue &q,
10591059
/*! @brief Check if all allocation queues are the same as the
10601060
execution queue */
10611061
template <std::size_t num>
1062-
bool queues_are_compatible(sycl::queue exec_q,
1062+
bool queues_are_compatible(const sycl::queue &exec_q,
10631063
const sycl::queue (&alloc_qs)[num])
10641064
{
10651065
for (std::size_t i = 0; i < num; ++i) {
@@ -1074,7 +1074,7 @@ bool queues_are_compatible(sycl::queue exec_q,
10741074
/*! @brief Check if all allocation queues of usm_ndarays are the same as
10751075
the execution queue */
10761076
template <std::size_t num>
1077-
bool queues_are_compatible(sycl::queue exec_q,
1077+
bool queues_are_compatible(const sycl::queue &exec_q,
10781078
const ::dpctl::tensor::usm_ndarray (&arrs)[num])
10791079
{
10801080
for (std::size_t i = 0; i < num; ++i) {

0 commit comments

Comments
 (0)