Repository navigation
fix(rocprofiler-sdk): TheRock fixes for SQLite3 include paths and rocm_sysdeps in RUNPATH - #9670
Conversation
✅ All Policy Checks Passed
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
There was a problem hiding this comment.
Pull request overview
This PR addresses build-system integration issues in rocprofiler-sdk by reorganizing the rocprofv3-list-avail tool library, improving runtime search paths to include rocm_sysdeps, and ensuring SQLite3 headers are available to the output library without forcing SQLite linkage.
Changes:
- Move/build
rocprofv3-list-availunderrocprofiler-sdk-tool/list-availand adjust CMake subdirectories accordingly. - Extend several
INSTALL_RPATH/default RPATH settings to include$ORIGIN/.../rocm_sysdeps/lib. - Improve SQLite3 dependency wiring and add a
*-nolinkinterface target to propagate SQLite3 include paths without linking.
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/CMakeLists.txt | Stops building the old rocprofiler-avail subdir from the core SDK lib tree. |
| projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/list-avail/rocprofv3_avail.hpp | Introduces a new exported C API header for the list-avail shared library. |
| projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/list-avail/rocprofv3_avail.cpp | Implements the exported C API for list-avail functionality (noted issues require fixes). |
| projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/list-avail/CMakeLists.txt | Adds build/install rules and updated INSTALL_RPATH for rocprofv3-list-avail. |
| projects/rocprofiler-sdk/source/lib/rocprofiler-sdk-tool/CMakeLists.txt | Adds list-avail subdirectory to the tool build. |
| projects/rocprofiler-sdk/source/lib/python/CMakeLists.txt | Extends Python library RPATH defaults to include rocm_sysdeps. |
| projects/rocprofiler-sdk/source/lib/output/CMakeLists.txt | Links output library to the SQLite3 nolink interface to obtain sqlite3.h include paths. |
| projects/rocprofiler-sdk/external/CMakeLists.txt | Makes SQLite3 target detection more robust and configures a SQLite3 “nolink” interface target. |
| projects/rocprofiler-sdk/cmake/rocprofiler_interfaces.cmake | Declares an imported rocprofiler-sdk-sqlite3-nolink interface target. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This pull request has been inactive for 25 days and will be marked as stale. If you would like to keep this PR open, please:
This PR will be automatically closed in 5 days if no further activity occurs. |
|
This pull request has been automatically closed due to inactivity (30 days with no updates). If you'd like to continue working on this, feel free to reopen the PR or create a new one. |
c0e6c63 to
0fd2a39
Compare
- this source should be in `source/lib/rocprofiler-sdk-tool/list-avail`
- important for Python bindings - added to rocprofv3 tool and rocprofv3 list avail
- #6664 removed the include directory for rocprofiler-sdk-output-library - detailed explanation in ROCm/TheRock#5868 - added rocprofiler-sdk-sqlite3-nolink target
0fd2a39 to
a944aae
Compare
|
Tested this on a clean Ubuntu 26.04 build for TheRock #5868. It fixes it. Setup: TheRock
The diff applied cleanly to that older rocm-systems revision. I only checked the build, not the RUNPATH |
TheRock Submodule Bump ActivityNewest first
|
Both fixes (ROCm/rocm-systems#9670 and #13075) are in the rocm-systems submodule since ROCm#8862.
…m_sysdeps in RUNPATH (#9670) ## Motivation <!-- Explain the purpose of this PR and the goals it aims to achieve. --> Fix a few build system issues. ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> - Minor reorganization to location of rocprofv3-list-avail tool library - Include `$ORIGIN/.../rocm_sysdeps/lib` in various RUNPATH - Ensure `rocprofiler-sdk-output-library` target is built with include path to `sqlite3.h` - details in ROCm/TheRock#5868 ## Issue Tracking <!-- Include a GitHub Issue and/or JIRA ID. Do not post any full JIRA links here. --> <!-- GitHub issue: #1234 --> <!-- JIRA ID: EXAMPLECOMPONENT-1234 --> ROCM-28966 ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md. --------- Co-authored-by: Young Hui <young.hui@amd.com>

Motivation
Fix a few build system issues.
Technical Details
$ORIGIN/.../rocm_sysdeps/libin various RUNPATHrocprofiler-sdk-output-librarytarget is built with include path tosqlite3.hIssue Tracking
ROCM-28966
Test Plan
Test Result
Submission Checklist