-
-
Notifications
You must be signed in to change notification settings - Fork 437
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]: IPEX Error loading c10_xpu.dll #3548
Comments
Install OneAPI and run these in CMD, then start the webui within that CMD window.
Then;
|
That did the trick, awesome! Thanks! |
@Disty0 I don't have "pytorch-gpu-dev-0.5\oneapi-vars.bat" and "ocloc\2024.2\env\vars.bat" files. Installed OneApi from here: Upd: I guess I can use those instead "C:\Program Files (x86)\Intel\oneAPI\2025.0\oneapi-vars.bat" But the second command does nothing for some reason & the C10_xpu.dll problem still there. Upd 2: I went Settings - System - About - Advanced System Settings - Environment Variables - System Variables - New if doesn't exist or Edit if it is wrong to "VS2022INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" enter your path in "" - ok - ok - ok After that I CMD and it finally works Are where any way to automate this to one shortcut like it was before? |
You can create a new bat file to add it to the bat file. More info about why this is a thing now: #3543 (comment) |
Issue Description
I recently installed SD.NEXT and have not been able to get it to run successfully. Every time I run it I get an error around the loading of C10_xpu.dll.
7:45:30-712011 DEBUG Starting module: <module 'webui' from 'C:\automatic\webui.py'>
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\automatic\launch.py:274 in │
│ │
│ 273 if name == "main": │
│ ❱ 274 main() │
│ 275 │
│ │
│ C:\automatic\launch.py:251 in main │
│ │
│ 250 │
│ ❱ 251 uv, instance = start_server(immediate=True, server=None) │
│ 252 while True: │
│ │
│ C:\automatic\launch.py:167 in start_server │
│ │
│ 166 installer.log.debug(f'Starting module: {server}') │
│ ❱ 167 module_spec.loader.exec_module(server) │
│ 168 uvicorn = None │
│ in exec_module:883 │
│ in call_with_frames_removed:241 │
│ │
│ C:\automatic\webui.py:11 in │
│ │
│ 10 from threading import Thread │
│ ❱ 11 import modules.loader │
│ 12 import torch # pylint: disable=wrong-import-order │
│ │
│ C:\automatic\modules\loader.py:18 in │
│ │
│ 17 os.environ.setdefault('TORCH_LOGS', '-all') │
│ ❱ 18 import torch # pylint: disable=C0411 │
│ 19 if torch.version.startswith('2.5.0'): │
│ │
│ C:\automatic\venv\lib\site-packages\torch_init.py:271 in │
│ │
│ 270 │
│ ❱ 271 _load_dll_libraries() │
│ 272 del load_dll_libraries │
│ │
│ C:\automatic\venv\lib\site-packages\torch_init.py:267 in _load_dll_libraries │
│ │
│ 266 ) │
│ ❱ 267 raise err │
│ 268 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [WinError 126] The specified module could not be found. Error loading "C:\automatic\venv\lib\site-packages\torch\lib\c10_xpu.dll" or one of its dependencies.
Press any key to continue . . .
Version Platform Description
app=sd.next updated=2024-11-01, Windows 11 Pro, Chrome
Relevant log output
Backend
Diffusers
UI
Standard
Branch
Master
Model
StableDiffusion 1.5
Acknowledgements
The text was updated successfully, but these errors were encountered: