Repository navigation
fix: reconcile Makefile/CMake example target lists in 4 directories - #597
Draft
zichguan-amd wants to merge 2 commits into
Draft
zichguan-amd wants to merge 2 commits into
zichguan-amd wants to merge 2 commits into
Conversation
Several leaf examples were buildable by one build system but not the other, with no guard explaining the gap: - HIP-Basic: `execution_context` builds unconditionally in CMake but was never added to the Makefile's EXAMPLES list. - Libraries/rocProfiler-SDK: `thread_trace` builds unconditionally in CMake (available since ROCm 10) but was missing from the Makefile. - Libraries/rocSPARSE/level_3: `spmm` has its own Makefile and CMakeLists.txt but was absent from the parent list in both build systems, so it was never built by either. - Libraries/MIVisionX: `mv_objdetect` was disabled in CMake pending Jira ROCM-1771, but the Makefile never got the matching skip and kept building it. Verified each change by building the affected target directly with the local ROCm toolchain (Make) and, for rocSPARSE/level_3, via a fresh CMake configure + build.
Security scan found no critical or high findings on lines changed by this pull requestView the security scan run for complete reports. “New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta. |
4 of 8 tasks
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.
Summary
A repo-wide scan comparing each directory's
Makefileexample/subproject list against the siblingCMakeLists.txtadd_subdirectory()calls turned up several leaf examples that are buildable by one build system but not the other, with no guard explaining the gap. This PR reconciles four of them:HIP-Basic:execution_contextbuilds unconditionally in CMake but was never added to the Makefile'sEXAMPLESlist.Libraries/rocProfiler-SDK:thread_tracebuilds unconditionally in CMake (# Available since ROCm 10) but was missing from the Makefile.Libraries/rocSPARSE/level_3:spmmhas its ownMakefileandCMakeLists.txt(plus Visual Studio project files) but was absent from the parent list in both build systems — it was never built by either.Libraries/MIVisionX:mv_objdetectwas disabled in CMake pending Jira ROCM-1771, but the Makefile never got the matching skip and kept building it. The Makefile now skips it too, with a comment matching CMake's.Investigated but intentionally left out of scope
HIP-Basic/static_device_librarybuilds via Make but has no CMake support. This is not a bug: itsREADME.mdexplicitly documents that static device libraries "must be linked withhipcc" and that "there is no support yet for linking such libraries with ... CMake." Adding CMake support would require solving an unsupported tooling gap, not a simple wiring fix, so it's left alone.Verification
execution_context,thread_trace, andspmmwere each built directly via their leafMakefileusing the local ROCm 7.x toolchain.Libraries/rocSPARSE/level_3was also configured and built fresh via CMake to confirm the newadd_subdirectory(spmm)wiring produces a workingrocsparse_spmmtarget.Libraries/MIVisionX'sMakefilewas invoked directly to confirmmv_objdetectis no longer attempted (thecannybuild itself fails locally only because MIVisionX/OpenVX dev headers aren't installed in this environment — unrelated to this change).Test plan
HIP-Basic,Libraries/rocProfiler-SDK,Libraries/rocSPARSE, andLibraries/MIVisionXon both the Make and CMake paths.🤖 Generated with Claude Code