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

[Issue]: ARC B580 no XPU device detected #3808

Open
2 tasks done
picarica opened this issue Mar 9, 2025 · 3 comments
Open
2 tasks done

[Issue]: ARC B580 no XPU device detected #3808

picarica opened this issue Mar 9, 2025 · 3 comments
Labels
platform Platform specific problem upstream Fix is required in upstream library

Comments

@picarica
Copy link

picarica commented Mar 9, 2025

Issue Description

So i got my B580 today i tired sd.next with ./webui.sh --use-ipex and it wouldnt work i tried also openvino which also said no gpu detected
its being run with python 3.10 and ollama and games can detect my gpu fine, should i do something else on this end ?

Version Platform Description

Gentoo cachyOS kernel with added support xes GPU
Kde plasma World with intel VIDEO_CARDS flag

Relevant log output

Activate python venv: /home/picarica/git/sdnext/venv
Launch: venv/bin/python3
22:16:35-772925 INFO     Starting SD.Next                                                                                               
22:16:35-775826 INFO     Logger: file="/home/picarica/git/sdnext/sdnext.log" level=INFO host="gentoo" size=32993 mode=append            
22:16:35-776654 INFO     Python: version=3.12.9 platform=Linux bin="/home/picarica/git/sdnext/venv/bin/python3"                         
                         venv="/home/picarica/git/sdnext/venv"                                                                          
22:16:35-789770 INFO     Version: app=sd.next updated=2025-03-06 hash=9ea16a30 branch=master                                            
                         url=https://github.com/vladmandic/sdnext/tree/master ui=main                                                   
22:16:36-127178 INFO     Platform: arch=x86_64 cpu=AMD Ryzen 5 5600X 6-Core Processor system=Linux release=6.12.17-cachyos-x86_64       
                         python=3.12.9 locale=('en_IE', 'UTF-8') docker=False                                                           
22:16:36-129218 INFO     Args: ['--use-ipex']                                                                                           
22:16:36-135840 INFO     Python: version=3.12.9 platform=Linux bin="/home/picarica/git/sdnext/venv/bin/python3"                         
                         venv="/home/picarica/git/sdnext/venv"                                                                          
22:16:36-136959 INFO     IPEX: Intel OneAPI toolkit detected                                                                            
22:16:36-178280 INFO     Install: verifying requirements                                                                                
22:16:36-186877 INFO     Extensions: disabled=[]                                                                                        
22:16:36-187784 INFO     Extensions: path="extensions-builtin" enabled=['sdnext-modernui', 'stable-diffusion-webui-rembg',              
                         'sd-extension-chainner', 'sd-extension-system-info', 'sd-webui-agent-scheduler', 'Lora']                       
22:16:36-189121 INFO     Extensions: path="extensions" enabled=[]                                                                       
22:16:36-189984 INFO     Startup: standard                                                                                              
22:16:36-190645 INFO     Verifying submodules                                                                                           
22:16:39-999583 INFO     Extensions enabled: ['sdnext-modernui', 'stable-diffusion-webui-rembg', 'sd-extension-chainner',               
                         'sd-extension-system-info', 'sd-webui-agent-scheduler', 'Lora']                                                
22:16:40-000465 INFO     Install: verifying requirements                                                                                
22:16:40-002288 INFO     Command line args: ['--use-ipex'] use_ipex=True args=[]                                                        
22:16:43-950300 INFO     Torch: torch==2.6.0+xpu torchvision==0.21.0+xpu                                                                
22:16:43-953296 INFO     Packages: diffusers==0.33.0.dev0 transformers==4.48.3 accelerate==1.3.0 gradio==3.43.2 pydantic==1.10.21       
╭───────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────╮
│ /home/picarica/git/sdnext/launch.py:283 in <module>                                                                                  │
│                                                                                                                                      │
│   282 if __name__ == "__main__":                                                                                                     │
│ ❱ 283     main()                                                                                                                     │
│   284                                                                                                                                │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/launch.py:262 in main                                                                                      │
│                                                                                                                                      │
│   261                                                                                                                                │
│ ❱ 262     uv, instance = start_server(immediate=True, server=None)                                                                   │
│   263     while True:                                                                                                                │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/launch.py:177 in start_server                                                                              │
│                                                                                                                                      │
│   176     installer.log.debug(f'Starting module: {server}')                                                                          │
│ ❱ 177     module_spec.loader.exec_module(server)                                                                                     │
│   178     uvicorn = None                                                                                                             │
│ in exec_module:999                                                                                                                   │
│ in _call_with_frames_removed:488                                                                                                     │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/webui.py:13 in <module>                                                                                    │
│                                                                                                                                      │
│    12 import modules.loader                                                                                                          │
│ ❱  13 import modules.hashes                                                                                                          │
│    14                                                                                                                                │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/modules/hashes.py:5 in <module>                                                                            │
│                                                                                                                                      │
│     4 from rich import progress, errors                                                                                              │
│ ❱   5 from modules import shared                                                                                                     │
│     6 from modules.paths import data_path                                                                                            │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/modules/shared.py:196 in <module>                                                                          │
│                                                                                                                                      │
│    195 elif cmd_opts.use_ipex or devices.has_xpu():                                                                                  │
│ ❱  196     from modules.intel.ipex import ipex_init                                                                                  │
│    197     ok, e = ipex_init()                                                                                                       │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/modules/intel/ipex/__init__.py:10 in <module>                                                              │
│                                                                                                                                      │
│     9     legacy = False                                                                                                             │
│ ❱  10 from .hijacks import ipex_hijacks                                                                                              │
│    11                                                                                                                                │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/modules/intel/ipex/hijacks.py:8 in <module>                                                                │
│                                                                                                                                      │
│     7                                                                                                                                │
│ ❱   8 device_supports_fp64 = torch.xpu.has_fp64_dtype() if hasattr(torch.xpu, "has_fp64_dtype") else torch.xpu.get_device_properties │
│     9 if os.environ.get('IPEX_FORCE_ATTENTION_SLICE', '0') == '0' and (torch.xpu.get_device_properties(devices.device).total_memory  │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/venv/lib/python3.12/site-packages/torch/xpu/__init__.py:255 in get_device_properties                       │
│                                                                                                                                      │
│   254     """
│ ❱ 255     _lazy_init()                                                                                                               │
│   256     device = _get_device_index(device, optional=True)                                                                          │
│                                                                                                                                      │
│ /home/picarica/git/sdnext/venv/lib/python3.12/site-packages/torch/xpu/__init__.py:120 in _lazy_init                                  │
│                                                                                                                                      │
│   119         # This function inits XPU backend and detects bad fork processing.                                                     │
│ ❱ 120         torch._C._xpu_init()                                                                                                   │
│   121         # Some of the queued calls may reentrantly call _lazy_init(); We need to                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: No XPU devices are available.

Backend

Original

UI

Standard

Branch

Master

Model

Other

Acknowledgements

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@Disty0
Copy link
Collaborator

Disty0 commented Mar 9, 2025

I am not sure if PyTorch 2.6 has battlemage support. You can try --use-nightly arg to use PyTorch nightly branch, also add --reinstall so PyTorch will be reinstalled.

@Disty0 Disty0 changed the title [Issue]: ARC B580 no xPU detect [Issue]: ARC B580 no XPU device detected Mar 10, 2025
@Disty0 Disty0 added upstream Fix is required in upstream library platform Platform specific problem labels Mar 10, 2025
@picarica
Copy link
Author

ye unfortunetly output is same even with 2.7 pytorch, do i need to wait for a update? or is it working for someone else?

@Disty0
Copy link
Collaborator

Disty0 commented Mar 10, 2025

Try updating the intel-compute-runtime packages to the latest ones. Older versions doesn't support the Xe driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform Platform specific problem upstream Fix is required in upstream library
Projects
None yet
Development

No branches or pull requests

2 participants