Replies: 34 comments 363 replies
-
|
We just got to that same point on gfx1151 this morning as well. We think there may be a driver update needed and will follow-up on Monday. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
A few TODOs AFAICS:
the first 3 is something I plan to look at soon.. the others I will try as time permits. In 2-3 weeks I should hopefully have more time to dedicate. Will need the driver update to test as @stellaraccident pointed out, though it shouldn't be a blocker to get things built at the very least. aotriton/triton is optional for getting pytorch running, though perf on anything that uses SDPA will be quite slow, and |
Beta Was this translation helpful? Give feedback.
-
|
I can reproduce the device not detected error that @scottt reported: |
Beta Was this translation helpful? Give feedback.
-
|
The Windows build of the If I build TheRock for |
Beta Was this translation helpful? Give feedback.
-
|
Someone on discord shared this existing triton fork which they were able to get built and running on Windows w/ HIP SDK 6.2.4 https://github.com/lshqqytiger/triton?tab=readme-ov-file#build-for-windows related: https://vladmandic.github.io/sdnext-docs/ZLUDA/#how-to-enable-triton |
Beta Was this translation helpful? Give feedback.
-
|
In step 13: |
Beta Was this translation helpful? Give feedback.
-
|
I just pushed this patch which adapts to a new directory layout in amdgpu-windows-interop: 5385753 and activates a new version. Note that there is a "latching" bug in the CMake var so it may cache the old directory. When upgrading, either use a fresh build or do I'm working on liberating a patch to clr that we have internally which enable gfx1150/1. Stand by. I won't be able to test these much until tomorrow because my dev gfx1150 laptop is being re-imaged. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I finally got switched over to developing on Strix Halo myself (I'm very hard to dislodge from my dev machine once I get in the groove -- people had been offering me a new system for a while), and everything built fine from the top and ran tests. I'll shift my attention to getting the rest of the math libraries built on Windows tomorrow. |
Beta Was this translation helpful? Give feedback.
-
|
hipBLASLt build fails while trying to build code using tensilelite: To get to building this, I had to:
Will investigate on how to fix. This one seems to be the bulk of the errors while building hipBLASLt. |
Beta Was this translation helpful? Give feedback.
-
|
FYI - ROCm/hipBLASLt#1967 I wouldn't recommend using this yet. Builds on my machine with a rebased patch stack. |
Beta Was this translation helpful? Give feedback.
-
|
bzip2 sysdep on Windows. Also taught it to create the executables and projects that depend on it should find them. |
Beta Was this translation helpful? Give feedback.
-
|
I'm working on building Triton on Windows using https://github.com/lshqqytiger/triton (linked from https://vladmandic.github.io/sdnext-docs/ZLUDA/#how-to-enable-triton). I've done a first pass analysis of the difference with upstream Triton and will post findings here. |
Beta Was this translation helpful? Give feedback.
-
|
Trying to build with hipSOLVER is apparently a dependency of pytorch, so thought I'd try to build with this. Release notes suggest |
Beta Was this translation helpful? Give feedback.
-
|
First attempt to building pytorch - some minor changes were needed in LoadHIP.cmake (disabling rccl and libhsa64, and adding another candidate dir for FindHIP.cmake as it's located in I also had to First compiler errors are around warnings not being recognized by MSVC: These warning options are inside of |
Beta Was this translation helpful? Give feedback.
-
|
I'm still working on Triton on Windows. I now have both the https://github.com/woct0rdho/triton-windows and https://github.com/lshqqytiger/triton forks built and have updated my scripts in https://gist.github.com/scottt/b85f07db488b3e37944a9f675370ed3c In the gist link I've recorded the working toolchain and LLVM versions. I've discovered that for upstream triton's main branch, both I've read over triton's mixed CMake and setuptools build system and will now work on aotriton. |
Beta Was this translation helpful? Give feedback.
-
|
I'm facing test hipBLAS, hipBLASLt test regressions after rebuilding TheRock on the main as of yesterday.. something must be off.. it used to pass before on my older |
Beta Was this translation helpful? Give feedback.
-
|
(continuing from #409 (reply in thread)) I finally have pytorch building on Windows. I've pushed my state on this branch https://github.com/ROCm/TheRock/compare/main...jammm:TheRock:jam/gfx1151-win?expand=1 The meat of the pytorch related changes are in 673553d pytorch was built with the following environment variables set: USE_ROCM=ON TL;DR is that I had to switch from MSVC to clang-cl for this one. I also cherry-picked some commits that are in pytorch main but didn't land on 2.7.0. Some of my changes in that commit were specific to MSVC, but now that clang-cl works, maybe those MSVC specific changes aren't necessary. At some point I also forced it to use lld as the linker when linking Basic ops like |
Beta Was this translation helpful? Give feedback.
-
|
@jammm shared a gdrive with me with his torch wheel and build/dist/rocm directory. Here is an easier recipe for getting it to work ootb:
(note addition of Then seems to do things on my Strix Halo laptop with no further alterations. I didn't need to move files or anything beyond that (although I did delete the In theory, if we monkey patch the wheel and then rezip it, we can turn any of our standalone torch wheels into a fat torch+rocm wheel. There are better ways to do this for sure, but I'll take the easy button to get started. I'll write a monkey patch script. |
Beta Was this translation helpful? Give feedback.
-
|
Here's a few things to keep in mind while building pytorch on Windows. This consolidates all the things I've said scattered around this discusison thread:
I'll edit this post and add more notes as I remember them. For now this should do. |
Beta Was this translation helpful? Give feedback.
-
|
Fix for the amd_comgr version issue: #579 |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I promise this one doesn't break things worse: #580 -- fixes hipblaslt library finding, so no more need to copy the library files to bin. Did we have more that had this problem (i.e. do I need to make the same basic change in rocblas)? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Building Pytorch with AOTriton on Windows
Build Instructions
|
Beta Was this translation helpful? Give feedback.
-
|
@ScottTodd In relation to #409 (reply in thread), I'm browsing the Could this be the source of my errors? If so, this PR from @xinyazhang mentions |
Beta Was this translation helpful? Give feedback.
-
|
trying to use the wheels on a strix halo windows 11, and gotten this c10.dll issue when trying to run comfyUI or Fooocus ( after pip install the 3 torch wheels in venv, and pip install comfy/fooocus' requirements and run the main.py) OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "C:\RocM\rocm_venv\venv\Lib\site-packages\torch\lib\c10.dll" or one of its dependencies. am i missing anything else? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jammm and @scottt. Can I somehow use gfx1200 Pytorch with aotriton on Windows? I mean theoretically how can it be done |
Beta Was this translation helpful? Give feedback.
-
|
Yes, that’s expected.
…On Monday, June 30, 2025, Nem404 ***@***.***> wrote:
@jammm <https://github.com/jammm> is it normal to get the error
'RuntimeError: No HIP GPUs are available' when using the gfx1201 wheels on
a gfx1200 system, or did I just install them incorrectly? I know you said
they aren't compatible with this card but is this the error it should give
for me?
—
Reply to this email directly, view it on GitHub
<#409 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATCSOGNPBQVN6ADRQ2WGKL3F76VRAVCNFSM6AAAAAB3ASRN2WVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRRGAYDONA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Completely random and not really on topic but i thought I'd share. Yesterday, instead of launching the Visual Studio X64 Native environment I accidentally clicked on the OneAPI x64 one. It built the hip compiler/s fine and the build finished without any obvious breakage. Looking at the logs it was calling icx-cl, tbb, mpi at different times of the build. |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've built TheRock without the math and machine learning libraries on Windows successfully following #244 (reply in thread) and am currently running into
no ROCm-capable device is detectederrors on the gfx1151 when running test programs.My Windows kernel drivers are from:


Setup
Fresh Windows 11 Installation
Visual Studio 2022 Community Edition
17.13.6Create a separate disk volume (
D:) as a Dev DriveD:)C:Windows Security / Microsoft Defender: exclude Dev Drive from virus scanning
Win + S, search for "Windows Security").Windows Search: exclude Dev Drive from indexing
Win + I).Enable Windows Developer Mode for symbolic links support
Win + I).Enable Windows Long Path Support
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -ForceEnable PowerShell Script Execution
Install Development Tools (using Winget)
Configure Git
Clone amdgpu-windows-interop.git next to TheRock
git clone https://github.com/nod-ai/amdgpu-windows-interop.gitUse patch stack recommended by @stellaraccident until they're merged: Vendor googletest. #404 Re-enable artifact generation on Windows. #408
Install Python 3.11 and Setup Virtual Environment
uv venv --python 3.11 .venvActivate Python Virtual Environment and Install Build Dependencies:
uv:ninjafrompip installand rely on ninja 1.12.0 from Strawberry Perl)Fetch TheRock source tree
Configure and build with cmake
python D:\work\therock-build.py -DAMD_GPU_FAMILIES=gfx1151 -DTHEROCK_ENABLE_ALL=OFF -DTHEROCK_ENABLE_HIP_RUNTIME=ON -DTHEROCK_ENABLE_PRIM=ON -DTHEROCK_ENABLE_RAND=ONWhere
therock-buildis essentiallylinux_portable_build_in_container.shrewritten in Python:Beta Was this translation helpful? Give feedback.
All reactions