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

Need to disable integrated GPU when using A770 #79

Closed
rajpatel9498 opened this issue Oct 22, 2024 · 1 comment
Closed

Need to disable integrated GPU when using A770 #79

rajpatel9498 opened this issue Oct 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rajpatel9498
Copy link
Contributor

Describe the bug

My machine has i7-13700K CPU with iGPU as Intel UHD Graphics 770 and dGPU as Intel Arc 770 (8 GB). When trying to run following command to check whether the XPU environment is correct or not, running into an error which says PI_ERROR_INVALID_DEVICE.

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())];"

To Reproduce

Steps to reproduce the behavior:

  1. Machine with iGPU enabled + Arc 770 (8 GB)

Expected behavior

XPU environment should be detected correct

Screenshots

The error log is as following:
C:\Users\Raj Patel\.conda\envs\aipc_xpu\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\Raj Patel\.conda\envs\aipc_xpu\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source? warn( 2.3.1+cxx11.abi 2.3.110+xpu ZE_LOADER_DEBUG_TRACE:Using Loader Library Path: ZE_LOADER_DEBUG_TRACE:Tracing Layer Library Path: ze_tracing_layer.dll Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Raj Patel\.conda\envs\aipc_xpu\lib\site-packages\torch\xpu\__init__.py", line 57, in device_count return torch._C._xpu_getDeviceCount() RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE) (aipc_xpu)

Environment (please complete the following information):

  • OS: Windows11 24H2
  • dGPU: [Intel Arc A770 8GB]
  • iGPU: [UHD Graphics 770]
  • CPU: [i7-13700K]
  • Version: Tip of the dev branch 2486734

Additional context

I was able to fix this issue by disabling iGPU device from Windows Device manager.

@rajpatel9498 rajpatel9498 added the bug Something isn't working label Oct 22, 2024
@Nuullll
Copy link
Contributor

Nuullll commented Oct 23, 2024

Duplicated with #76 and intel/intel-extension-for-pytorch#718

@Nuullll Nuullll closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants