Repository navigation
Fix Makefile build: libhipcxx moved to include/hipccl breaks hipCUB/rocThrust/monte_carlo_pi - #599
Merged
Conversation
…rocThrust, monte_carlo_pi TheRock#7024 moved libhipcxx headers from the top-level include dir into include/hipccl. hipCUB's and rocThrust's std-polyfill headers probe for <hip/std/version> on the default include path and now hit "libhipcxx could not be found" on the plain-Makefile builds, breaking hipCUB/device_sum, hipCUB/device_radix_sort, all rocThrust examples, and Applications/monte_carlo_pi (pulls in both). Libraries/libhipcxx and Libraries/hipThreads already carry this same include/hipccl (falling back to include/libhipcxx) detection; apply the identical pattern to the remaining Makefiles that transitively depend on libhipcxx. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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. |
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
10.3.0a20261125) broke the plain-Makefile build forLibraries/hipCUB/device_sum,Libraries/hipCUB/device_radix_sort, all ofLibraries/rocThrust/*, andApplications/monte_carlo_piwitherror: "libhipcxx could not be found". The 2026-11-24 nightly built these targets fine, so this is a regression surfaced by a package layout change, not a code issue in those examples.include/intoinclude/hipccl. hipCUB'slibcxx.hppand rocThrust'sthrust/detail/config/libcxx.hprobe__has_include(<hip/std/version>)against the default include path and now fail to find it there.Libraries/libhipcxx/*andLibraries/hipThreads/*Makefiles already carry a fallback for this exact move (added in libhipcxx: Clean up and apply review feedback #539), but it was never applied to the hipCUB/rocThrust Makefiles ormonte_carlo_pi, which transitively depend on libhipcxx through<hipcub/...>and<thrust/...>headers. This PR applies the identical, already-establishedinclude/hipccl→include/libhipcxxfallback pattern to those remaining Makefiles.ROCm/rocm-libraries) for an existing fix: the relocation is intentional on TheRock's side with no project-side workaround upstream (those projects build via CMake/ctest, not hand-written Makefiles), so the in-repoinclude/hipccl-detection convention already used bylibhipcxx/hipThreadsis the correct precedent to follow here.Test plan
Makefile buildstep passes forhipCUB,rocThrust, andApplicationscategories on the next nightly run.make -C Libraries/hipCUB,make -C Libraries/rocThrust,make -C Applications/monte_carlo_piagainst a tarball install where libhipcxx lives underinclude/hipccl. Downloaded the exact nightly tarball that broke CI (therock-dist-linux-gfx110X-all-tests-10.3.0a20261125.tar.gz) and reproduced the failure pre-fix, then confirmed all 9 targets build and run correctly on gfx1100 post-fix.🤖 Generated with Claude Code