[X] The issue exists after disabling all extensions
[X] The issue exists on a clean installation of webui
[ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
[X] The issue exists in the current version of the webui
[X] The issue has not been reported before recently
[ ] The issue has been reported before but has not been fixed yet
What happened?
Windows10 installed HIP6.1.2, previous version 1.9.3-AMD works fine using --use-zluda. Thanks.
However, v1.10.1-amd-1-g3db66a0b installation failed.
webui-user.bat with --use-zluda,
zluda_installer.py detect HIP SDK version using rocm.py.
If %HIP_PATH%bin is configured at win10,
rocm.py
27 hip_path = shutil.which("hipconfig")
This hip_path = C:\Program Files\AMD\ROCm\6.1\bin\hipconfig.BAT
and then
29 return dirname(resolve_link(hip_path), 2)
returns C:\Program Files\AMD\ROCm\6.1.
finally, rocm.version become 6.1, Good.
However, if %HIP_PATH%bin is NOT configured,
31 hip_path = os.environ.get("HIP_PATH", None)
33 return hip_path
os.environ returns C:\Program Files\AMD\ROCm\6.1\
and rocm.version become "", installation failed.
Workaround:
33 return dirname(resolve_link(hip_path), 1)
returns C:\Program Files\AMD\ROCm\6.1 instead of return C:\Program Files\AMD\ROCm\6.1\ .
rocm.version become 6.1, Good.
I can not remember HIP5.7.1's os.environ.
Steps to reproduce the problem
HIP 6.1.2 installed, but %HIP_PATH%bin is NOT configured at windows10,
Checklist
What happened?
Windows10 installed HIP6.1.2, previous version 1.9.3-AMD works fine using --use-zluda. Thanks. However, v1.10.1-amd-1-g3db66a0b installation failed.
webui-user.bat with --use-zluda, zluda_installer.py detect HIP SDK version using rocm.py.
If %HIP_PATH%bin is configured at win10, rocm.py 27 hip_path = shutil.which("hipconfig") This hip_path = C:\Program Files\AMD\ROCm\6.1\bin\hipconfig.BAT and then 29 return dirname(resolve_link(hip_path), 2) returns C:\Program Files\AMD\ROCm\6.1. finally, rocm.version become 6.1, Good.
However, if %HIP_PATH%bin is NOT configured, 31 hip_path = os.environ.get("HIP_PATH", None) 33 return hip_path os.environ returns C:\Program Files\AMD\ROCm\6.1\ and rocm.version become "", installation failed.
Workaround: 33 return dirname(resolve_link(hip_path), 1) returns C:\Program Files\AMD\ROCm\6.1 instead of return C:\Program Files\AMD\ROCm\6.1\ . rocm.version become 6.1, Good.
I can not remember HIP5.7.1's os.environ.
Steps to reproduce the problem
What should have happened?
normal boot with ZLUDA, like a previous version 1.9.3-AMD
What browsers do you use to access the UI ?
Microsoft Edge
Sysinfo
-
Console logs
Additional information
SD.Next's dev looks same issue. https://github.com/vladmandic/automatic/blob/dev/modules/rocm.py