Repository navigation
fix(hip-tests): Restore 12_cmake_hip_add_executable sample - #14879
Open
david-salinas wants to merge 2 commits into
Open
david-salinas wants to merge 2 commits into
david-salinas wants to merge 2 commits into
Conversation
The sample was removed in #5708 but the test harness still lists it, causing hip_samples to fail on every nightly (ROCM-33839). Restore the sample with an updated CMakeLists.txt that uses the FindHIP.cmake compatibility shim (find_package(HIP MODULE) + HIP_ADD_EXECUTABLE) instead of the deleted hipconfig-based build. This keeps coverage for the legacy FindHIP path that downstream projects still use. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ All Policy Checks Passed
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
mangupta
reviewed
Nov 3, 2026
- Use find_package(HIP MODULE REQUIRED) to explicitly request the FindHIP.cmake module path instead of relying on implicit resolution - Add checkHipErrors(hipGetLastError()) after kernel launch to catch async launch errors - Return EXIT_FAILURE/EXIT_SUCCESS instead of raw error count Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
🤖 AI-assisted pre-review (for @mangupta) Re-reviewed the updated head ( |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sample 12_cmake_hip_add_executable was removed in #5708 but the test harness still lists it, causing hip_samples to fail on every nightly across 17 of 21 Linux hosts (ROCM-33839). This restores the sample with an updated CMakeLists.txt that uses the FindHIP.cmake compatibility shim (find_package(HIP MODULE) +
HIP_ADD_EXECUTABLE) instead of the deleted hipconfig-based build, keeping coverage for the legacy FindHIP path that downstream projects still use.
Motivation
PR #5708 removed 12_cmake_hip_add_executable because it relied on hipconfig, which was being deprecated. However, the test harness was not updated to skip the sample, so every nightly build fails with exit code 127 (CMakeLists.txt not found). Additionally, no other sample exercises the FindHIP.cmake compatibility shim —
restoring this sample is the only coverage for the find_package(HIP MODULE) / HIP_ADD_EXECUTABLE legacy path.
Technical Details
Issue Tracking
JIRA ID: ROCM-33839
Test Plan
Test Result
Submission Checklist