Skip to content

Bump gloo submodule to include native CMake HIP support#186787

Closed
harkgill-amd wants to merge 1 commit into
pytorch:mainfrom
harkgill-amd:fix/bump-gloo-native-hip-cmake
Closed

Bump gloo submodule to include native CMake HIP support#186787
harkgill-amd wants to merge 1 commit into
pytorch:mainfrom
harkgill-amd:fix/bump-gloo-native-hip-cmake

Conversation

@harkgill-amd

@harkgill-amd harkgill-amd commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Needed for ROCm/TheRock#5694.

  • PyTorch's LoadHIP.cmake migrated to native CMake HIP language support (enable_language(HIP) + find_package(hip CONFIG)) w/ d921fd0

  • The gloo submodule is still pinned at 3135b0b which depends on FindHIP.cmake. This leads to lld-link: error: could not open 'gloo_hip.lib': no such file or directory errors on Windows after gloo fails to locate HIP.

  • Bumping the gloo submodule to bcd1672 ("ROCm: Migrate to native CMake HIP support") aligns gloo with the current native CMake HIP direction.

Testing

  • Current nightly branch (gloo 3135b0b) -> gloo fails to find HIP leading to missing gloo_hip.lib Build Windows PyTorch Wheels (dev, 3.12, gfx1151) · ROCm/TheRock@2c48fe4
  Could not find a configuration file for package "HIP" that is compatible                                                                                                                                                                    
  with requested version "1.0".                                                                                                                                                                                                               
  The following configuration files were considered but not accepted:                                                                                                                                                                         
      hip-config.cmake, version: 7.14.60850                                                                                                                                                                                                   
        The version found is not compatible with the version requested.                                                                                                                                                                       
  lld-link: error: could not open 'gloo_hip.lib': no such file or directory   
  • nightly branch + bump (gloo bcd1672) -> gloo finds HIP and gloo_hip.lib is successfully linked Build Windows PyTorch Wheels (dev, 3.12, gfx1151) · ROCm/TheRock@d731f33
  -- Found HIP: 7.14.60850                                                                                                                                                                                                                    
  -- GLOO_ROCM_ARCH: gfx1151
  [2218/2880] Linking HIP static library lib\gloo_hip.lib  

cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @nkhasbag-nv

@pytorch-bot

pytorch-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/186787

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 2 Pending

As of commit ee84f95 with merge base d18f5dc (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Jun 9, 2026
@pragupta pragupta added module: windows Windows support for PyTorch ciflow/trunk Trigger trunk jobs on your pull request labels Jun 9, 2026
@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@Skylion007

Copy link
Copy Markdown
Collaborator

Should we add cmake support this in this PR or put that in a subsequent diff?

jemitche1 pushed a commit to jemitche1/pytorch that referenced this pull request Jun 13, 2026
Needed for ROCm/TheRock#5694.

- PyTorch's LoadHIP.cmake migrated to native CMake HIP language support (enable_language(HIP) + find_package(hip CONFIG)) w/ pytorch@d921fd0

- The gloo submodule is still pinned at 3135b0b which depends on FindHIP.cmake. This leads to `lld-link: error: could not open 'gloo_hip.lib': no such file or directory` errors on Windows after gloo fails to locate HIP.

- Bumping the gloo submodule to [bcd1672 ("ROCm: Migrate to native CMake HIP support")](pytorch/gloo@bcd1672) aligns gloo with the current native CMake HIP direction.

**Testing**

- Current nightly branch (gloo 3135b0b) -> gloo fails to find HIP leading to missing gloo_hip.lib Build Windows PyTorch Wheels (dev, 3.12, gfx1151) · ROCm/TheRock@2c48fe4

```
  Could not find a configuration file for package "HIP" that is compatible
  with requested version "1.0".
  The following configuration files were considered but not accepted:
      hip-config.cmake, version: 7.14.60850
        The version found is not compatible with the version requested.
  lld-link: error: could not open 'gloo_hip.lib': no such file or directory
 ```

- nightly branch + bump (gloo bcd1672) -> gloo finds HIP and gloo_hip.lib is successfully linked Build Windows PyTorch Wheels (dev, 3.12, gfx1151) · ROCm/TheRock@d731f33

```
  -- Found HIP: 7.14.60850
  -- GLOO_ROCM_ARCH: gfx1151
  [2218/2880] Linking HIP static library lib\gloo_hip.lib
  ```

Pull Request resolved: pytorch#186787
Approved by: https://github.com/jeffdaily, https://github.com/Skylion007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: windows Windows support for PyTorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants