ComfyUI/comfyui.bat
Rando717 f618968cbf
Update comfyui.bat
-minor batch cleanup

-slightly more informative zluda check
2025-09-12 17:00:00 +02:00

39 lines
1.1 KiB
Batchfile

@echo off
set "PYTHON=%~dp0venv\Scripts\python.exe"
set "GIT="
set "VENV_DIR=.\venv"
set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0.9"
set "ZLUDA_COMGR_LOG_LEVEL=1"
echo ** Checking and updating to new version if possible
copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL
git pull
copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL
rem Check for zluda.exe and nccl.dll inside the zluda folder
echo.
echo ** Checking ZLUDA installation...
pushd .\zluda
if exist zluda.exe (
if not exist nccl.dll (
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 (
echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory.
)
popd
echo.
.\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS%
pause