From f618968cbf3e968f7a2cd7749a8872262be6a5f1 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Fri, 12 Sep 2025 17:00:00 +0200 Subject: [PATCH 1/7] Update comfyui.bat -minor batch cleanup -slightly more informative zluda check --- comfyui.bat | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/comfyui.bat b/comfyui.bat index 3ef7f4832..dc61322b6 100644 --- a/comfyui.bat +++ b/comfyui.bat @@ -1,37 +1,38 @@ @echo off -set PYTHON="%~dp0/venv/Scripts/python.exe" -set GIT= -set VENV_DIR=./venv +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 "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 git pull 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 ** Checking ZLUDA version -pushd . -cd ./zluda +echo ** Checking ZLUDA installation... +pushd .\zluda if exist zluda.exe ( - if not exist nccl.dll ( - echo nccl.dll is missing, likely blocked by AV as false positive. + 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 ( -zluda.exe --version -echo Check passed. -) -) else ( - echo Check failed. Can't detect ZLUDA. + echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory. ) popd echo. .\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS% pause - From df57ff67d9f53a7987c9cdc9b613dca3ca36815b Mon Sep 17 00:00:00 2001 From: Rando717 Date: Fri, 12 Sep 2025 17:13:11 +0200 Subject: [PATCH 2/7] Update comfyui-n.bat -same commits as with comfyui.bat (cleanup+more informative zluda check) --- comfyui-n.bat | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/comfyui-n.bat b/comfyui-n.bat index 734518bdd..8556b559d 100644 --- a/comfyui-n.bat +++ b/comfyui-n.bat @@ -1,44 +1,46 @@ @echo off -set FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE -set FLASH_ATTENTION_TRITON_AMD_AUTOTUNE=TRUE +set "FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE" +set "FLASH_ATTENTION_TRITON_AMD_AUTOTUNE=TRUE" -set MIOPEN_FIND_MODE=2 -set MIOPEN_LOG_LEVEL=3 +set "MIOPEN_FIND_MODE=2" +set "MIOPEN_LOG_LEVEL=3" -set PYTHON="%~dp0/venv/Scripts/python.exe" -set GIT= -set VENV_DIR=./venv +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 "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0.9" :: in the comfyui-user.bat remove the dots on the line below and change the gfx1030 to your gpu's specific code. :: you can find out about yours here, https://llvm.org/docs/AMDGPUUsage.html#processors -:: Set TRITON_OVERRIDE_ARCH=gfx1030 +:: set "TRITON_OVERRIDE_ARCH=gfx1030" -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 git pull copy comfy\customzluda\zluda.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 ** Checking ZLUDA version -pushd . -cd ./zluda +echo ** Checking ZLUDA installation... +pushd .\zluda if exist zluda.exe ( - if not exist nccl.dll ( - echo nccl.dll is missing, likely blocked by AV as false positive. + 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 ( -zluda.exe --version -echo Check passed. -) -) else ( - echo Check failed. Can't detect ZLUDA. + echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory. ) popd From 7ef7b0a1b5269df7a96f8eb44aa2fede8435b8f4 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Sat, 13 Sep 2025 15:29:32 +0200 Subject: [PATCH 3/7] Update comfyui.bat ** Stylized git pull output --- comfyui.bat | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/comfyui.bat b/comfyui.bat index dc61322b6..07676afce 100644 --- a/comfyui.bat +++ b/comfyui.bat @@ -8,10 +8,13 @@ set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0. set "ZLUDA_COMGR_LOG_LEVEL=1" -echo ** Checking and updating to new version if possible - +echo ** Checking and updating to a new version if possible... copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL -git pull +setlocal EnableDelayedExpansion +for /f "delims=" %%A in ('git pull 2^>^&1') do ( + echo ** %%A +) +endlocal copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL rem Check for zluda.exe and nccl.dll inside the zluda folder From 4b607e54fd09c5e05fbaa8adfee232c694da11b0 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Sat, 13 Sep 2025 15:33:52 +0200 Subject: [PATCH 4/7] Update comfyui-n.bat ** Stylized git pull output --- comfyui-n.bat | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/comfyui-n.bat b/comfyui-n.bat index 8556b559d..363032380 100644 --- a/comfyui-n.bat +++ b/comfyui-n.bat @@ -19,10 +19,13 @@ set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0. set "ZLUDA_COMGR_LOG_LEVEL=1" -echo ** Checking and updating to new version if possible - +echo ** Checking and updating to a new version if possible... copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL -git pull +setlocal EnableDelayedExpansion +for /f "delims=" %%A in ('git pull 2^>^&1') do ( + echo ** %%A +) +endlocal copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL rem Check for zluda.exe and nccl.dll inside the zluda folder From 2f256e48cbb349acd15aab77f0cd7386db2a4c98 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Sun, 14 Sep 2025 23:25:39 +0200 Subject: [PATCH 5/7] Update comfyui-n.bat - reverted previous commit (removes colored + - signs) - added check for git (install+version) and current commit hash - stylized output: [INFO], [PASS], [FAIL] - added launching app info --- comfyui-n.bat | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/comfyui-n.bat b/comfyui-n.bat index 363032380..45d51ed89 100644 --- a/comfyui-n.bat +++ b/comfyui-n.bat @@ -19,34 +19,45 @@ set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0. set "ZLUDA_COMGR_LOG_LEVEL=1" -echo ** Checking and updating to a new version if possible... -copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL -setlocal EnableDelayedExpansion -for /f "delims=" %%A in ('git pull 2^>^&1') do ( - echo ** %%A +:: Check Git version and installed commit hash +where git >NUL 2>&1 +if errorlevel 1 ( + echo [FAIL] Git not found in PATH. Please install Git. + pause +) else ( + for /f "tokens=3*" %%v in ('git --version') do ( + echo [INFO] Detected Git version: %%v %%w + ) + for /f %%h in ('git rev-parse --short HEAD') do ( + echo [INFO] Current ComfyUI-ZLUDA commit hash: %%h + ) ) -endlocal + +echo [INFO] Checking and updating to a new version if possible... +copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL +git pull copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL -rem Check for zluda.exe and nccl.dll inside the zluda folder +:: Check for zluda.exe and nccl.dll inside the zluda folder echo. -echo ** Checking ZLUDA installation... +echo [INFO] 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. + 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 + echo [PASS] Detected version: %%v ) ) ) else ( - echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory. + echo [FAIL] Can't detect zluda.exe inside .\zluda directory. ) popd +echo [INFO] Launching application via ZLUDA... echo. .\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS% pause From 6571c9f3ef8548f9b9676e6a7e64448f28be2848 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Sun, 14 Sep 2025 23:39:19 +0200 Subject: [PATCH 6/7] Update comfyui.bat --- comfyui.bat | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/comfyui.bat b/comfyui.bat index 07676afce..f9a558409 100644 --- a/comfyui.bat +++ b/comfyui.bat @@ -8,34 +8,45 @@ set "COMMANDLINE_ARGS=--auto-launch --use-quad-cross-attention --reserve-vram 0. set "ZLUDA_COMGR_LOG_LEVEL=1" -echo ** Checking and updating to a new version if possible... -copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL -setlocal EnableDelayedExpansion -for /f "delims=" %%A in ('git pull 2^>^&1') do ( - echo ** %%A +:: Check Git version and installed commit hash +where git >NUL 2>&1 +if errorlevel 1 ( + echo [FAIL] Git not found in PATH. Please install Git. + pause +) else ( + for /f "tokens=3*" %%v in ('git --version') do ( + echo [INFO] Detected Git version: %%v %%w + ) + for /f %%h in ('git rev-parse --short HEAD') do ( + echo [INFO] Current ComfyUI-ZLUDA commit hash: %%h + ) ) -endlocal -copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL -rem Check for zluda.exe and nccl.dll inside the zluda folder +echo [INFO] Checking and updating to a new version if possible... +copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL +git pull +copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL + +:: Check for zluda.exe and nccl.dll inside the zluda folder echo. -echo ** Checking ZLUDA installation... +echo [INFO] 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. + 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 + echo [PASS] Detected version: %%v ) ) ) else ( - echo ** [FAIL] Can't detect zluda.exe inside .\zluda directory. + echo [FAIL] Can't detect zluda.exe inside .\zluda directory. ) popd +echo [INFO] Launching application via ZLUDA... echo. .\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS% pause From d6495b10a7abf443dde42e59ebc3780aa34efe60 Mon Sep 17 00:00:00 2001 From: Rando717 Date: Mon, 15 Sep 2025 00:49:28 +0200 Subject: [PATCH 7/7] Update comfyui.bat (typo) --- comfyui.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfyui.bat b/comfyui.bat index f9a558409..d9fa36209 100644 --- a/comfyui.bat +++ b/comfyui.bat @@ -25,7 +25,7 @@ if errorlevel 1 ( echo [INFO] Checking and updating to a new version if possible... copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL git pull -copy comfy\customzluda\zluda.py comfy\zluda.py /y >NUL +copy comfy\customzluda\zluda-default.py comfy\zluda.py /y >NUL :: Check for zluda.exe and nccl.dll inside the zluda folder echo. @@ -50,3 +50,4 @@ echo [INFO] Launching application via ZLUDA... echo. .\zluda\zluda.exe -- %PYTHON% main.py %COMMANDLINE_ARGS% pause +