Skip to content
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

ERRORLEVEL not equal to 0 when moving an tensor to XPU on Windows #634

Closed
Oscilloscope98 opened this issue May 21, 2024 · 3 comments
Closed
Assignees
Labels
ARC ARC GPU Bug Something isn't working iGPU Windows

Comments

@Oscilloscope98
Copy link

Describe the bug

When moving a simple tensor to XPU on Windows, the %ERRORLEVEL% return non-zero in CMD, which is not as expected as no error reported in the python code.

Code to reproduce the error

import intel_extension_for_pytorch as ipex
import torch

torch.tensor([[0]], device='xpu')
image

This behavior happened both on

  • Arc A770 on Windows 11 (driver version 31.0.101.5382)
  • Ultra Core iGPU (driver version 31.0.101.5333)

Resolving this problem will be helpful for us regarding adding related UT on Windows. Thank you!

Versions

Step to reproducing the env

conda create -n test python=3.11 libuv
pip install torch==2.1.0a0 torchvision==0.16.0a0 torchaudio==2.1.0a0 intel-extension-for-pytorch==2.1.10 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
pip install dpcpp-cpp-rt==2024.0.2 mkl-dpcpp==2024.0.0 onednn==2024.0.0

Versions (taking Arc A770 case as an example)

Collecting environment information...
PyTorch version: 2.1.0a0+cxx11.abi
PyTorch CXX11 ABI: No
IPEX version: 2.1.10+xpu
IPEX commit: a12f9f650
Build type: Release

OS: Microsoft Windows 11 家庭中文版
GCC version: N/A
Clang version: N/A
IGC version: N/A
CMake version: N/A
Libc version: N/A

Python version: 3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is XPU available: True
DPCPP runtime version: N/A
MKL version: N/A
GPU models and configuration:
[0] _DeviceProperties(name='Intel(R) Arc(TM) A770 Graphics', platform_name='Intel(R) Level-Zero', dev_type='gpu, support_fp64=0, total_memory=15930MB, max_compute_units=512, gpu_eu_count=512)
Intel OpenCL ICD version: N/A
Level Zero version: N/A

CPU:
Architecture=9
CurrentClockSpeed=3200
DeviceID=CPU0
Family=207
L2CacheSize=14336
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=3200
Name=12th Gen Intel(R) Core(TM) i9-12900K
ProcessorType=3
Revision=

Versions of relevant libraries:
[pip3] intel-extension-for-pytorch==2.1.10+xpu
[pip3] numpy==1.26.4
[pip3] torch==2.1.0a0+cxx11.abi
[pip3] torchaudio==2.1.0a0+cxx11.abi
[pip3] torchvision==0.16.0a0+cxx11.abi
[conda] intel-extension-for-pytorch 2.1.10+xpu               pypi_0    pypi
[conda] mkl                       2024.0.0                 pypi_0    pypi
[conda] mkl-dpcpp                 2024.0.0                 pypi_0    pypi
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] onemkl-sycl-blas          2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-datafitting   2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-dft           2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-lapack        2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-rng           2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-sparse        2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-stats         2024.0.0                 pypi_0    pypi
[conda] onemkl-sycl-vm            2024.0.0                 pypi_0    pypi
[conda] torch                     2.1.0a0+cxx11.abi          pypi_0    pypi
[conda] torchaudio                2.1.0a0+cxx11.abi          pypi_0    pypi
[conda] torchvision               0.16.0a0+cxx11.abi          pypi_0    pypi
@huiyan2021
Copy link

Hi @Oscilloscope98,

Could you try the latest version of ipex-xpu with oneapi 2024.1?

image

image

@huiyan2021 huiyan2021 self-assigned this May 21, 2024
@huiyan2021 huiyan2021 added the Bug Something isn't working label May 30, 2024
@Oscilloscope98
Copy link
Author

Hi @huiyan2021,

Thank you for the reply. I have tried ipex-xpu with oneAPI 2024.1 through env

conda create -n test python=3.11 libuv

pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/  
pip install dpcpp-cpp-rt==2024.1.2 mkl-dpcpp==2024.1.0 onednn==2024.1.1
pip install "setuptools<70.0.0"

And the ERRORLEVEL is 0 as expected :)

@huiyan2021
Copy link

Thanks for confirmation, I will close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARC ARC GPU Bug Something isn't working iGPU Windows
Projects
None yet
Development

No branches or pull requests

2 participants