Can't get ComfyUI working on AMD #15214
Unanswered
ThatIvanGuy
asked this question in
Q&A
Replies: 2 comments 1 reply
The `D:\a\ComfyUI` path didn't come from your computer. It's the GitHub Actions build directory that accidentally embedded in the portable packages generated by `offload-arch.exe` launcher of the AMD.
It's the same packaging defect that's reported in #15097. The portable build effectively installed the ROCm package _before_ relocating the embedded Python directory, which caused the generated launcher to retain the original CI path.
Because your `D:` is on a DVD drive, I wouldn't use the junction workaround from that issue. The proper fix would be a repacked archive or regenerating the launcher against `C:\AI\python_embeded\python.exe`.
There's also potentially a second problem: The later access violation occurs inside `torch.cuda.is_available()`. If the launcher path is fixed, it might remove the `offload-arch` warning w/o fixing the ROCm crash.
What's the exact AMD GPU and driver version that you're using? If a the first warning is removed from a corrected launcher, but the access violation persists, that will confirm if it's a separate GPU/driver compatibility issue. |
1 reply
|
This is an annoying issue that they don't seem to be willing to fix (see my original post from way back: #11546 ) The "subst" will make the D: drive point to the C: drive I have since switched from Windows to Linux and can no longer test things out on Windows, but hopefully this old and ugly hack still works. Best of luck. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I just downloaded ComfyUI_windows_portable_amd.7z the other day and it doesn't seem to be working for me. Trying to figure out what could have gone wrong here. D: is my old old DVD. The reference to D:\a\ makes no sense.
I'll paste my CMD output. Maybe someone can tell me what happened?
C:\AI>run_amd_gpu.bat
C:\AI>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
←[32m[INFO]←[0m setup plugin alembic.autogenerate.schemas
←[32m[INFO]←[0m setup plugin alembic.autogenerate.tables
←[32m[INFO]←[0m setup plugin alembic.autogenerate.types
←[32m[INFO]←[0m setup plugin alembic.autogenerate.constraints
←[32m[INFO]←[0m setup plugin alembic.autogenerate.defaults
←[32m[INFO]←[0m setup plugin alembic.autogenerate.comments
Fatal error in launcher: Unable to create process using '"D:\a\ComfyUI\python_embeded\python.exe" "C:\AI\python_embeded\Scripts\offload-arch.exe" ': The system cannot find the file specified.
[WARNING] offload-arch failed with return code 1
[stderr]
Windows fatal exception: access violation
Stack (most recent call first):
File "C:\AI\python_embeded\Lib\site-packages\torch\cuda_init_.py", line 182 in is_available
File "C:\AI\python_embeded\Lib\site-packages\comfy_kitchen\backends\cuda_init_.py", line 3032 in register
File "C:\AI\python_embeded\Lib\site-packages\comfy_kitchen\backends\cuda_init.py", line 3043 in
File "", line 488 in _call_with_frames_removed
File "", line 999 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "", line 488 in _call_with_frames_removed
File "", line 1415 in handle_fromlist
File "C:\AI\python_embeded\Lib\site-packages\comfy_kitchen_init.py", line 3 in
File "", line 488 in _call_with_frames_removed
File "", line 999 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\AI\ComfyUI\comfy\quant_ops.py", line 23 in
File "", line 488 in _call_with_frames_removed
File "", line 999 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\AI\ComfyUI\comfy\memory_management.py", line 8 in
File "", line 488 in _call_with_frames_removed
File "", line 999 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\AI\ComfyUI\comfy\utils.py", line 25 in
File "", line 488 in _call_with_frames_removed
File "", line 999 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\AI\ComfyUI\main.py", line 229 in
C:\AI>pause
Press any key to continue . . .
C:\AI>
All reactions