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
The current build configuration is using a legacy mode, which uses FindHIP.cmake while recent ROCm versions use hip-config.cmake and hip-lang-config.cmake. The entire HIP/ROCm build needs to be updated.
It had to be built with USE_RCCL=OFF due to an issue with the rccl package in Debian. The package passes all the tests (that it is supposed to pass with RCCL OFF) and has been tested on an AMD Instinct MI210.
PyTorch also needs to switch to CMake's native HIP support. Right now the HIP compiler is tied to the C++ compiler. They should be separated because the user might want to use a different, possibly more optimized, compiler for the CPU code and just use the HIP compiler for the HIP code.
The CMake minimum version needs to be bumped from the current 3.18 to 3.21. Do any PyTorch/GLOO maintainers know whether this change would cause any trouble?
Sorry I did not realize that you had already made the PR @GZGavinZhao
As for the CMake version, I had built my debian package on the latest version on the apt unstable branch which was 4.1.1 so I do not think this should be problematic. The CPU package also built successfully, though I did not test it.
Oops no no sorry for submitting a PR when you already have your changes. Feel free to PR to my branch if you have more ROCm things from your patch that you want to get merged.
@GZGavinZhao sure, I will do so. Additionally, the version of CMake is actually 4.1.1+really3.31.6-2 so essentially it is 3.31 and not 4.1. Either way, the minimum version requirement of 3.21 should be alright.
Activity
GZGavinZhao commentedon Jan 7, 2026
PyTorch also needs to switch to CMake's native HIP support. Right now the HIP compiler is tied to the C++ compiler. They should be separated because the user might want to use a different, possibly more optimized, compiler for the CPU code and just use the HIP compiler for the HIP code.
GZGavinZhao commentedon Jan 7, 2026
add_definitions(-D__HIP_PLATFORM_AMD__ -D__HIP_PLATFORM_HCC__)shouldn't be needed, either CMake or LLVM should add it for you.GZGavinZhao commentedon Jan 10, 2026
The CMake minimum version needs to be bumped from the current 3.18 to 3.21. Do any PyTorch/GLOO maintainers know whether this change would cause any trouble?
Spaarsh commentedon Jan 11, 2026
Sorry I did not realize that you had already made the PR @GZGavinZhao
As for the CMake version, I had built my debian package on the latest version on the
apt unstablebranch which was4.1.1so I do not think this should be problematic. The CPU package also built successfully, though I did not test it.GZGavinZhao commentedon Jan 11, 2026
Oops no no sorry for submitting a PR when you already have your changes. Feel free to PR to my branch if you have more ROCm things from your patch that you want to get merged.
Spaarsh commentedon Jan 11, 2026
@GZGavinZhao sure, I will do so. Additionally, the version of CMake is actually
4.1.1+really3.31.6-2so essentially it is3.31and not4.1. Either way, the minimum version requirement of 3.21 should be alright.d4l3k commentedon Feb 6, 2026
I'm adding a rocm build in #488 which hopefully will help us test this