intel / intel-extension-for-pytorch

A Python package for extending the official PyTorch that can easily obtain performance on Intel platform
Apache License 2.0
1.59k stars 244 forks source link

issue with IPEX v2.3.110 #717

Open wallacezq opened 2 weeks ago

wallacezq commented 2 weeks ago

Describe the issue

Hi,

I encountered the after installing IPEX v2.3.110 following the guide from this link

system: MTL-H OS: Windows 11 Python ver: 3.11 python -m pip install torch==2.3.1+cxx11.abi torchvision==0.18.1+cxx11.abi torchaudio==2.3.1+cxx11.abi intel-extension-for-pytorch==2.3.110+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/mtl/us/

I did not see similar issue with the version: v2.1.40+xpu.

The installation completed successfully, but running the sanity test throw the following error: python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())]; Console log: (Triggered internally at C:\Jenkins\workspace\IPEX-WW-BUILDS\frameworks.ai.pytorch.private-gpu\torch\csrc\utils\tensor_numpy.cpp:84.) values=torch.randn(3, 3, device="meta"), Traceback (most recent call last): File "", line 1, in File "C:\Users\MTL\miniconda3\envs\ipex_231\Lib\site-packages\intel_extension_for_pytorch__init__.py", line 107, in raise err OSError: [WinError 193] %1 is not a valid Win32 application. Error loading "C:\Users\MTL\miniconda3\envs\ipex_231\Lib\site-packages\intel_extension_for_pytorch\bin\intel-ext-pt-gpu.dll" or one of its dependencies.

Please let me know how to resolve this. thanks.

regards, Wallace

jingxu10 commented 2 weeks ago

Did you run conda install libuv?

0Pinky0 commented 2 weeks ago

Related issue: https://github.com/intel/intel-extension-for-pytorch/issues/710 Looks like this problem happens on Windows with python version in [3.8, 3.9, 3.11].