Skip to content

Commit f716c56

Browse files
committed
sycl event wait_and_throw is not const func
1 parent bd3e1b6 commit f716c56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpcpp/base/event_kernels.dp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class DpcppEvent : public Event {
3737

3838
private:
3939
std::shared_ptr<const DpcppExecutor> exec_;
40-
sycl::event event_;
40+
// wait_and_throw is not a const function. We use synchrnoize() const to
41+
// keep the same interface as executor->synchronize()
42+
mutable sycl::event event_;
4143
};
4244

4345

0 commit comments

Comments
 (0)