Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Dec 27, 2024
1 parent 51e43e6 commit 0246903
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ template <typename _T>
struct __result_and_scratch_storage_base
{
virtual ~__result_and_scratch_storage_base() = default;
virtual _T __wait_and_get_value(sycl::event&&, std::size_t) const = 0;
virtual _T __wait_and_get_value(const sycl::event&, std::size_t) const = 0;
};

template <typename _ExecutionPolicy, typename _T>
Expand Down Expand Up @@ -684,7 +684,7 @@ struct __result_and_scratch_storage : __result_and_scratch_storage_base<_T>
}
}

virtual _T __wait_and_get_value(sycl::event&& __event, std::size_t idx = 0) const
virtual _T __wait_and_get_value(const sycl::event& __event, std::size_t idx = 0) override const
{
if (is_USM())
__event.wait_and_throw();
Expand Down

0 comments on commit 0246903

Please sign in to comment.