Skip to content

[Windows] ComfyUI-ZLUDA fails to start - compilation error with struct timeval visibility on ROCm 6.4 #411

Description

@dwojewod

Custom Node Testing

Expected Behavior

ComfyUI should start successfully after kernel compilation.

Actual Behavior

ComfyUI-ZLUDA fails to start during Triton kernel compilation. The process stops after compilation warnings about struct timeval visibility in Python headers.

Steps to Reproduce

Environment

OS: Windows
GPU: AMD gfx1150 (RDNA3)
ROCm: 6.4
Python: 3.11.13
Triton: 3.4.0
Package manager: StabilityMatrix
ComfyUI-ZLUDA: Installed via StabilityMatrix on 07.01.2026

Debug Logs

comfyui.log

  ::  Checking package versions...
Found pydantic: 2.12.5, pydantic-settings: 2.12.0
  ::  Pydantic packages are compatible, skipping reinstall
Installed version of comfyui-frontend-package: 1.35.9
Installed version of comfyui-workflow-templates: 0.7.67
Installed version of av: 16.0.1
Installed version of comfyui-embedded-docs: 0.3.1
Installed version of comfy-kitchen: 0.2.4
  ::  Package version check complete.

  ::  ------------------------ ZLUDA -----------------------  ::  
  ::  TRITON_OVERRIDE_ARCH already set to: gfx1150
  ::  Triton core imported successfully
  ::  Detected Triton version: 3.4.0
  ::  Enabled cuDNN
  ::  Running Triton kernel test...
%%% [info] triton/runtime/build/platform_key: AMD64,Windows,64bit,WindowsPE



cache-clean.bat
re-launch

 ::  Checking package versions...
Found pydantic: 2.12.5, pydantic-settings: 2.12.0
  ::  Pydantic packages are compatible, skipping reinstall
Installed version of comfyui-frontend-package: 1.35.9
Installed version of comfyui-workflow-templates: 0.7.67
Installed version of av: 16.0.1
Installed version of comfyui-embedded-docs: 0.3.1
Installed version of comfy-kitchen: 0.2.4
  ::  Package version check complete.

  ::  ------------------------ ZLUDA -----------------------  ::  
  ::  TRITON_OVERRIDE_ARCH already set to: gfx1150
  ::  Triton core imported successfully
  ::  Detected Triton version: 3.4.0
  ::  Enabled cuDNN
  ::  Running Triton kernel test...
Compilation is in progress. Please wait...
%%% [info] triton/runtime/build/platform_key: AMD64,Windows,64bit,WindowsPE
Using HIP SDK Clang.
%%% Triton is using the compiler 'C:\Program Files\AMD\ROCm\6.4\bin\clang.exe'
%%% [info] triton/runtime/build/_build: "C:\Program Files\AMD\ROCm\6.4\bin\clang.exe" C:\Users\d\AppData\Local\Temp\tmpkk3bewrx\hip_utils.c -O3 -shared -Wno-psabi -march=native -mtune=native -o C:\Users\d\AppData\Local\Temp\tmpkk3bewrx\hip_utils.cp311-win_amd64.pyd -LC:\Users\d\AppData\Roaming\StabilityMatrix\Packages\ComfyUI-Zluda\venv\libs "-LC:\Program Files\AMD\ROCm\6.4\lib" -IC:\Users\d\AppData\Roaming\StabilityMatrix\Packages\ComfyUI-Zluda\venv\Lib\site-packages\triton\backends\amd\include -IC:\Users\d\AppData\Local\Temp\tmpkk3bewrx -IC:\Users\d\AppData\Roaming\StabilityMatrix\Assets\Python\cpython-3.11.13-windows-x86_64-none\Include
In file included from C:\Users\d\AppData\Local\Temp\tmpkk3bewrx\hip_utils.c:8:
In file included from C:\Users\d\AppData\Roaming\StabilityMatrix\Assets\Python\cpython-3.11.13-windows-x86_64-none\Include\Python.h:87:
C:\Users\d\AppData\Roaming\StabilityMatrix\Assets\Python\cpython-3.11.13-windows-x86_64-none\Include\cpython/pytime.h:184:12: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
  184 |     struct timeval *tv,
      |            ^
C:\Users\d\AppData\Roaming\StabilityMatrix\Assets\Python\cpython-3.11.13-windows-x86_64-none\Include\cpython/pytime.h:190:12: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
  190 |     struct timeval *tv,
      |            ^
2 warnings generated.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions