Skip to content

[test-only] Deprecate HIPCC#5081

Draft
david-salinas wants to merge 6 commits intomainfrom
users/dsalinas/deprecate-hipcc-with-patches
Draft

[test-only] Deprecate HIPCC#5081
david-salinas wants to merge 6 commits intomainfrom
users/dsalinas/deprecate-hipcc-with-patches

Conversation

@david-salinas
Copy link
Copy Markdown

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

david-salinas and others added 5 commits April 30, 2026 12:30
Add CMAKE_HIP_COMPILER and --rtlib/--unwindlib linker flags to the
amd-hip toolchain so all subprojects get the correct HIP compiler
without needing hipcc as a wrapper.

- cmake/therock_subproject.cmake: set CMAKE_HIP_COMPILER to the built
  clang++ and add --rtlib=compiler-rt --unwindlib=libgcc to linker flags
- core/CMakeLists.txt: remove hipcc from hip-clr RUNTIME_DEPS
- math-libs/CMakeLists.txt: remove hipcc from libhipcxx COMPILER_TOOLCHAIN
  and RUNTIME_DEPS
- Rename test_libhipcxx_hipcc.py -> test_libhipcxx_amdclang.py and
  update it to invoke amdclang++ directly

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Updates the amd-llvm submodule to include a deprecation warning
emitted to stderr when hipcc is invoked with --help or -h.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Documents the deprecation of hipcc in favor of calling amdclang++
directly, covering: why the change is being made, what changed in
TheRock's amd-hip toolchain, a flag equivalency table mapping hipcc's
implicit behavior to explicit amdclang++ flags, and migration guidance
for CMake projects, Makefile/shell-based projects, and callers of
hipconfig introspection.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
…tems

Add two patches carrying our hipcc deprecation changes as TheRock patch
files so they can be applied via fetch_sources.py to the submodules:

- patches/amd-mainline/llvm-project/: hipcc deprecation warning on
  --help/-h (compiler/amd-llvm branch users/dsalinas/deprecate-hipcc)
- patches/amd-mainline/rocm-systems/: hip-tests drop hipconfig
  find_program/execute_process, derive HIP version from find_package(hip)

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Add a second patch for rocm-systems carrying the roctracer test
migration from legacy find_package(HIP MODULE) to enable_language(HIP).
The legacy FindHIP.cmake module (CMake 3.27 built-in) requires
HIP_HIPCC_EXECUTABLE and HIP_HIPCONFIG_EXECUTABLE, which are no longer
available in the dist after hipcc was removed from hip-clr's RUNTIME_DEPS.

Also regenerates the existing hip-tests patch (0001) as part of the
format-patch run — content is unchanged.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

1 participant