Skip to content

ROCm: Migrate to native CMake HIP support#478

Open
GZGavinZhao wants to merge 1 commit intopytorch:mainfrom
GZGavinZhao:native-cmake-hip
Open

ROCm: Migrate to native CMake HIP support#478
GZGavinZhao wants to merge 1 commit intopytorch:mainfrom
GZGavinZhao:native-cmake-hip

Conversation

@GZGavinZhao
Copy link

@GZGavinZhao GZGavinZhao commented Jan 10, 2026

Fixes #477.

Using CMake's native HIP support is now the recommended way to use HIP, as shown in the official docs. It has much better developer ergonomics.

The only change I'm concerned about is bumping minimum CMake version from 3.18 to 3.21. I don't know if this will have any consequences for downstream users.

@meta-cla
Copy link

meta-cla bot commented Jan 10, 2026

Hi @GZGavinZhao!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla
Copy link

meta-cla bot commented Jan 10, 2026

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla bot added the CLA Signed label Jan 10, 2026
Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM these changes generally look fine though we don't have any rocm CI setup

Have you tested with pytorch/pytorch?

@d4l3k
Copy link
Member

d4l3k commented Feb 6, 2026

#488 should help with CI

@GZGavinZhao can you rebase on top of that once that lands?

@GZGavinZhao
Copy link
Author

Sounds good! Thanks for that. I've subscribed to that PR and will rebase once that's merged.

@d4l3k
Copy link
Member

d4l3k commented Feb 7, 2026

@pytorchbot rebase

@d4l3k
Copy link
Member

d4l3k commented Feb 7, 2026

@GZGavinZhao can you manually rebase? I don't think PT bot will work in this repo actually

@GZGavinZhao
Copy link
Author

@d4l3k Rebased, sorry for the delay, was trying to test this with PyTorch on Windows but got stuck with ROCm/TheRock/issues/3283. I guess I'll test this with PyTorch on Linux only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outdated HIP/ROCm Build

3 participants