Skip to content

fix(hip-tests) add find_package for hsa and comgr - #9802

Merged
amd-hsivasun merged 6 commits into
ROCm:developfrom
afzpatel:hip-tests-find-comgr-hsa
Oct 1, 2026
Merged

amd-hsivasun merged 6 commits into
ROCm:developfrom
afzpatel:hip-tests-find-comgr-hsa

Conversation

@afzpatel

@afzpatel afzpatel commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Fixes the following errors in the 15_static_library HIP samples when building with Spack:

ld.lld: error: unable to find library -lamd_comgr
ld.lld: error: unable to find library -lhsa-runtime64

Technical Details

Added find_package for comgr and hsa-runtime64 to the host_functions and device_functions sample CMake files to ensure that the libraries can be found during configuration

Issue Tracking

JIRA ID: ROCM-29155

Submission Checklist

@afzpatel
afzpatel requested review from a team as code owners August 6, 2026 21:02
Copilot AI lite review requested due to automatic review settings August 6, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@therock-pr-bot

therock-pr-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

projects/hip-tests/samples/2_Cookbook/15_static_library/device_functions/CMakeLists.txt:23

  • PR description says both the host_functions and device_functions samples add find_package() for both amd_comgr and hsa-runtime64, but this CMakeLists.txt only adds amd_comgr. Either add the hsa-runtime64 find_package here as well, or update the PR description to match the actual scope.
if(UNIX)
  find_package(amd_comgr REQUIRED)
endif()

@afzpatel

Copy link
Copy Markdown
Contributor Author

@ROCm/hip-tests-reviewers @ROCm/lrt-build-infra please review

@amd-hsivasun
amd-hsivasun merged commit 88fe493 into ROCm:develop Oct 1, 2026
180 of 191 checks passed
systems-assistant Bot pushed a commit to ROCm/hip-tests that referenced this pull request Oct 1, 2026
## Motivation

Fixes the following errors in the 15_static_library HIP samples when
building with Spack:
```
ld.lld: error: unable to find library -lamd_comgr
ld.lld: error: unable to find library -lhsa-runtime64
```
## Technical Details

Added `find_package` for comgr and hsa-runtime64 to the `host_functions`
and `device_functions` sample CMake files to ensure that the libraries
can be found during configuration

## Issue Tracking
JIRA ID: ROCM-29155

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
[rocm-systems] ROCm/rocm-systems#9802 (commit 88fe493)
@afzpatel
afzpatel deleted the hip-tests-find-comgr-hsa branch October 1, 2026 20:32
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

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.

5 participants