Update comfyui.bat

-minor batch cleanup

-slightly more informative zluda check
This commit is contained in:
Rando717 2025-09-12 17:00:00 +02:00 committed by GitHub
parent 4c5915d5cb
commit f618968cbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,37 +1,38 @@
@echo off @echo off
set PYTHON="%~dp0/venv/Scripts/python.exe" set "PYTHON=%~dp0venv\Scripts\python.exe"
set GIT= set "GIT="
set VENV_DIR=./venv set "VENV_DIR=.\venv"
set COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0.9 set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0.9"
set ZLUDA_COMGR_LOG_LEVEL=1 set "ZLUDA_COMGR_LOG_LEVEL=1"
echo *** Checking and updating to new version if possible echo ** Checking and updating to new version if possible
copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL
git pull git pull
copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL
:: Check for zluda.exe and nccl.dll rem Check for zluda.exe and nccl.dll inside the zluda folder
echo. echo.
echo ** Checking ZLUDA version echo ** Checking ZLUDA installation...
pushd . pushd .\zluda
cd ./zluda
if exist zluda.exe ( if exist zluda.exe (
if not exist nccl.dll ( if not exist nccl.dll (
echo nccl.dll is missing, likely blocked by AV as false positive. for /f "tokens=2 delims= " %%v in ('zluda.exe --version 2^>^&1') do (
echo ** [FAIL] Detected version [%%v], but nccl.dll is missing. Likely blocked by AV as false positive.
)
) else (
for /f "tokens=2 delims= " %%v in ('zluda.exe --version 2^>^&1') do (
echo ** [PASS] Detected version: %%v
)
)
) else ( ) else (
zluda.exe --version echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory.
echo Check passed.
)
) else (
echo Check failed. Can't detect ZLUDA.
) )
popd popd
echo. echo.
.\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS% .\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS%
pause pause