Skip to content

Commit bae7108

Browse files
committed
Fix sycl event sycl for ONEMKL
1 parent 3a9419c commit bae7108

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ATen/native/xpu/mkl/BatchLinearAlgebra.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace at::native::xpu {
2121
#define SYCL_ONEMKL_SUBMIT(q, routine, ...) \
2222
{ \
2323
auto e = (routine(__VA_ARGS__)); \
24+
e.wait_and_throw(); \
2425
(q).throw_asynchronous(); \
2526
}
2627

0 commit comments

Comments
 (0)