Skip to content

Commit 30735b4

Browse files
Use event::wait for synchronization instead of wait and throw
1 parent 9d6aea0 commit 30735b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dpctl/tensor/libtensor/include/kernels/copy_and_cast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ void copy_and_cast_from_host_impl(
635635

636636
// perform explicit synchronization. Implicit synchronization would be
637637
// performed by sycl::buffer destructor.
638-
copy_and_cast_from_host_ev.wait_and_throw();
638+
copy_and_cast_from_host_ev.wait();
639639

640640
return;
641641
}

dpctl/tensor/libtensor/source/copy_numpy_ndarray_into_usm_ndarray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void copy_numpy_ndarray_into_usm_ndarray(
130130
src_nelems * src_elem_size, depends);
131131

132132
// wait for copy_ev to complete
133-
copy_ev.wait_and_throw();
133+
copy_ev.wait();
134134

135135
return;
136136
}

0 commit comments

Comments
 (0)