You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`print` works now on DLE 2025.0.0. But `test_print` UTs still fail.
There are two reason:
1. We use subprocess to call `print` while we use `sycl::queue` from
`torch`. So the `queue` cannot be synced before the exiting of
subprocess.
2. `torch.xpu.synchronize()` does not work because it just sync on
`reserved streams`. (See [the
comment](https://github.com/pytorch/pytorch/blob/19d01a1ef0c0d65768eb0a5c97a25328eec57fbd/c10/xpu/XPUStream.cpp#L249)).
Accroding to my test, our print kernels were not waited on.
So I add an `launch_exit_hook` to wait on that queue.
0 commit comments