-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PI_ERROR_INVALID_QUEUE after copying device 0 tensor to device 1 #745
Comments
SYCL runtime issue. As latest SYCL spec, we are recommended to use |
duplicated with #339 |
The issue is common for all platform where there are devices more than one. The most important and most common case for us is client case, a client platform/desktop has an iGPU and an dGPU. |
@fengyuan14 can we please apply the workaround available to fix this problem? i.e. change to
|
@daisyden @fengyuan14 (pt_src) [ddkalamk@pcl-pvc01 pytorch]$ cat test2.py
import torch
print("PyTorch version: ", torch.__version__)
a = torch.empty(3, device=torch.device('xpu:0'))
a.fill_(1.1)
b = a.to(device='xpu:1')
a.device
b.device
print(b.cpu())
print(b)
(pt_src) [ddkalamk@pcl-pvc01 pytorch]$ python -u test2.py
PyTorch version: 2.5.0a0+git8693322
tensor([1.1000, 1.1000, 1.1000])
tensor([1.1000, 1.1000, 1.1000], device='xpu:1') |
Sounds good, thanks. |
The WA has been merged in main branch. #769 |
🐛 Describe the bug
Report:
Versions
latest version
The text was updated successfully, but these errors were encountered: