Update comfyui-n.bat, print hip PATH(s)

prints "HIP_PATH" at the very top, 
and all defined "HIP_PATH_xx" paths


optional print under Build Tools with check for MSVC in PATH,
assuming default path:
<drive>\<program files>\Microsoft Visual Studio\<year>\BuildTools\VC\Tools\MSVC\<version>\bin\Hostx64\x64
This commit is contained in:
Rando717 2025-10-02 00:22:02 +02:00 committed by GitHub
parent 129d2c3d2e
commit cfb3eecdc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,29 @@ set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0.
set "ZLUDA_COMGR_LOG_LEVEL=1"
:: echo Checking HIP environment variables...
if defined HIP_PATH (
echo HIP_PATH = %HIP_PATH%
) else (
echo HIP_PATH = Not set
)
if defined HIP_PATH_57 (
echo HIP_PATH_57 = %HIP_PATH_57%
)
if defined HIP_PATH_61 (
echo HIP_PATH_61 = %HIP_PATH_61%
)
if defined HIP_PATH_62 (
echo HIP_PATH_62 = %HIP_PATH_62%
)
if defined HIP_PATH_64 (
echo HIP_PATH_64 = %HIP_PATH_64%
)
if defined HIP_PATH_70 (
echo HIP_PATH_70 = %HIP_PATH_70%
)
echo.
:: Check for Build Tools via vswhere.exe (assuming default path)
setlocal enabledelayedexpansion
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
@ -36,6 +59,35 @@ if defined VSVer (
)
endlocal
:: Check for MSVC Tools inside PATH (assuming default path)
setlocal enabledelayedexpansion
set "msvc_suffix=\BuildTools\VC\Tools\MSVC\"
set "msvc_prefix=\bin\Hostx64\x64"
set "msvc_vs_ver=2015 2017 2019 2022 2026"
set "drives=C D E F G"
for %%D in (%drives%) do (
set "pf1=%%D:\Program Files"
set "pf2=%%D:\Program Files (x86)"
for %%P in ("!pf1!" "!pf2!") do (
for %%V in (%msvc_vs_ver%) do (
set "vs_path=%%~P\Microsoft Visual Studio\%%V"
set "full_prefix=!vs_path!!msvc_suffix!"
echo !PATH! | find /I "!full_prefix!" >nul
if errorlevel 1 (
rem pass
) else (
echo !PATH! | find /I "!msvc_prefix!" >nul
if errorlevel 1 (
echo [INFO] No MSVC Tools found in PATH.
) else (
echo [INFO] MSVC Tools for Visual Studio %%V found in PATH.
)
)
)
)
)
endlocal
:: Check Git version
where git >NUL 2>&1
if errorlevel 1 (
@ -101,6 +153,7 @@ if NOT "%LOCAL%"=="%REMOTE%" (
echo [INFO] Already up to date.
)
copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL
echo.
:: Get AMD Software version via registry (stop on first match)
setlocal enabledelayedexpansion