[ROCm Windows] fix build failed#2519
Conversation
|
After getting rid of MSVC link.exe, building only requires a few cmds: And I don't know if it's a defect of the ROCm SDK that the link tool using MSVC's rather than LLVM's. |
|
Can you try building again ? #2517 was merged which should fix your issue. |
it's more to do with setuptools, which is why pypa/distutils#406 is trying to fix it. Perhaps the lack of |
|
Yeah... sorry. tested main with #2517 patch. We should be able to close this PR. |
To be honest it shouldn't fix anything at all because the problem is a windows limitation. I suspect the use of lld or some other linker caused something different to happen elsewhere that worked around the problem. |
|
I'm quite sure AMD's intention was to build CK with LLVM, but since MSVC's linker works fine, it doesn't matter. The linking issue I encountered may also be related to With |
|
@jammm This PR now only contains issue with Triton backend, can you take a look? |
|
lgtm! |
|
@tridao can we merge this too please? This is for windows support with |
|
is there a version of window-triton we should pin? |
|
Not needed for now, aiter uses the latest version to run smoke test. |
|
I would pin it to |
|
Let's pin it to |
|
Pinned |

I encountered some issues while trying to build fa2 on ROCm Windows:
CK backend:
In the link phase, the cmd length will exceed the maximum length 32,767: pypa/distutils#406
Fix: write each obj line by line to the rsp file.
Building uses the
hipcc.exein the ROCm SDK and its llvmclang.exe, but no linker is specified, and it defaults to MSVClink.exe, which caused some issues (even with MSVC environment activated).Fix: change to llvm's
lld-link.exe.After these two changes:
Triton backend:
The default requirement is
triton==3.5.1, but it is not provided by aiter yet on Windows.Fix: use
triton-windowsinstead.