Skip to content

CMake Native HIP Usage, main branch (2026.02.18.)#352

Merged
krasznaa merged 2 commits intoacts-project:mainfrom
krasznaa:CMakeNativeHIP-main-20260218
Feb 19, 2026
Merged

CMake Native HIP Usage, main branch (2026.02.18.)#352
krasznaa merged 2 commits intoacts-project:mainfrom
krasznaa:CMakeNativeHIP-main-20260218

Conversation

@krasznaa
Copy link
Member

This is my alternative suggestion to #342.

@StewMH, I ran some tests. At least with the (close to) latest CMake version I was able to compile code using CMake's built-in HIP support for an NVIDIA backend as well. The CMake code even respects the HIP_PLATFORM environment variable for giving a default value to CMAKE_HIP_PLATFORM. Even though the documentation doesn't mention that anywhere. (As far as I could see.) Which mirrors how this project's code currently behaves.

UBSAN I also bumped into as an issue, but I think I found a more robust way to turn it off when it's not available. 🤔

All in all, while I'll still need to so some further tests on a native AMD system as well, I think the time may indeed be here finally to retire the custom HIP code of the project. 😉

@krasznaa krasznaa added the cleanup Remove old code that is no longer needed label Feb 18, 2026
@krasznaa krasznaa force-pushed the CMakeNativeHIP-main-20260218 branch from 5decdbe to 6329e3e Compare February 19, 2026 12:23
Switching to rathr building HIP code using CMake's built-in
functionality. Which is implemented scarily similarly to how
this project's code behaved.
@krasznaa krasznaa force-pushed the CMakeNativeHIP-main-20260218 branch from 6329e3e to 6258653 Compare February 19, 2026 12:52
@sonarqubecloud
Copy link

@krasznaa
Copy link
Member Author

Relatively simple tests on our standard AMD test machine seem to work fine with this. Including its ability to still build the HIP code for an NVIDIA backend.

Let's cross fingers, and move ahead with this... 🤞

@krasznaa krasznaa merged commit 7bff418 into acts-project:main Feb 19, 2026
32 checks passed
@krasznaa krasznaa deleted the CMakeNativeHIP-main-20260218 branch February 19, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Remove old code that is no longer needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant