You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Issue]: Additional environment variables and CMake flags are needed to use ROCm packaged by TheRock Windows tarball #1979
it will show many issue like missing files or compilation error.
So far it can be workaround by adding relative files like clang, ld,. llvm as well as amdgcn etc from general hip sdk windows package.
But it is better for support these files in native therock windows package for llama.cpp hip windows backend build
Thanks!
Operating System
windows 11
CPU
395 Max
GPU
Radeon 8060s
ROCm Version
the rock 7.10
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
Hi @lihaofd, TheRock is not missing any files. All you need is to set the full path to the compiler and make sure you have a windows rc compiler. I was able to compiler with the following flags in powershell, I have the tarball unzipped to C:/therock/.
And add to PATH: C:\therock\lib\llvm\bin and C:\therock\bin
I'm trying to cover as much as possible, some of it might not be needed. Feel free to try any combinations that might work for you.
We need to document this or have a script for it, same as #1658.
Hi @lihaofd, please let me know if you got it to work and feel free to comment if you still have questions or concerns.
HIP_PATH=C:\therock
set HIP_PATH_70=%HIP_PATH%
set LLVM_PATH=%HIP_PATH%
set HIP_PLATFORM=amd
set CMAKE_C_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang.exe
set CMAKE_CXX_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang++.exe
set CMAKE_RC_COMPILER="C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/rc.exe"
set PATH=%HIP_PATH%\bin;%PATH%
can work,thank you for help!
changed the title [-][Issue]: when building hip windows backend in llama.cpp from therock, missing some compilation files on the rock windows package[/-][+][Issue]: Additional environment variables and CMake flags are needed to use ROCm packaged by TheRock Windows tarball[/+]on Nov 6, 2025
Activity
zichguan-amd commentedon Oct 31, 2025
Hi @lihaofd, TheRock is not missing any files. All you need is to set the full path to the compiler and make sure you have a windows rc compiler. I was able to compiler with the following flags in powershell, I have the tarball unzipped to
C:/therock/.If
rcis in the path, e.g. when using the Visual Studio X64 command prompt, you can omit theCMAKE_RC_COMPILERflag.zichguan-amd commentedon Oct 31, 2025
You also likely need to set the following environment variables:
And add to PATH:
C:\therock\lib\llvm\binandC:\therock\binI'm trying to cover as much as possible, some of it might not be needed. Feel free to try any combinations that might work for you.
We need to document this or have a script for it, same as #1658.
zichguan-amd commentedon Nov 6, 2025
Hi @lihaofd, please let me know if you got it to work and feel free to comment if you still have questions or concerns.
lihaofd commentedon Nov 6, 2025
HIP_PATH=C:\therock
set HIP_PATH_70=%HIP_PATH%
set LLVM_PATH=%HIP_PATH%
set HIP_PLATFORM=amd
set CMAKE_C_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang.exe
set CMAKE_CXX_COMPILER=%HIP_PATH%\lib\llvm\bin\amdclang++.exe
set CMAKE_RC_COMPILER="C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/rc.exe"
set PATH=%HIP_PATH%\bin;%PATH%
can work,thank you for help!
[-][Issue]: when building hip windows backend in llama.cpp from therock, missing some compilation files on the rock windows package[/-][+][Issue]: Additional environment variables and CMake flags are needed to use ROCm packaged by TheRock Windows tarball[/+]zichguan-amd commentedon Nov 6, 2025
Good to hear! I'll go ahead and close the issue. I've also changed to title to reflect the issue more accurately.