Skip to content

[ROCm] support hermetic sysroot and clean up hipcc wrapper#262

Merged
yuriivcs merged 8 commits into
google-ml-infra:mainfrom
alekstheod:rocm_clean_up_hipcc_wrapper
May 21, 2026
Merged

[ROCm] support hermetic sysroot and clean up hipcc wrapper#262
yuriivcs merged 8 commits into
google-ml-infra:mainfrom
alekstheod:rocm_clean_up_hipcc_wrapper

Conversation

@alekstheod
Copy link
Copy Markdown
Contributor

@alekstheod alekstheod commented May 18, 2026

Building jax manylinux compatible requires hermetic sysroot support. This pr will drop the usage of local sysroot by the rocm toolchain. Followup PRs will be removing local sysroot as it is not required for the build anymore.

@alekstheod alekstheod force-pushed the rocm_clean_up_hipcc_wrapper branch from 2e96ca6 to c6a5ba2 Compare May 20, 2026 06:49
- Add LIBSTDCXX_FLAGS constant for static libstdc++ linking
- Update ROCm toolchain to support both libc++ and libstdc++ static linking
- This fixes hermetic builds where -nodefaultlibs requires explicit library linking
- Resolves shutdown crashes caused by mixing hermetic headers with system runtime libs
@alekstheod alekstheod force-pushed the rocm_clean_up_hipcc_wrapper branch 3 times, most recently from 3254949 to 5a7dde3 Compare May 20, 2026 11:24
@alekstheod alekstheod force-pushed the rocm_clean_up_hipcc_wrapper branch from 5a7dde3 to 4c90b44 Compare May 20, 2026 12:10
@alekstheod alekstheod marked this pull request as ready for review May 20, 2026 13:50
"//common:stdlib": "libstdc++",
"//common:static_libcxx": "True",
},
)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All config_setting in //common use names with prefix 'is_', try to use the same name convention in ROCM.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@alekstheod alekstheod force-pushed the rocm_clean_up_hipcc_wrapper branch from a8f5c04 to b63c6d9 Compare May 21, 2026 06:28
@alekstheod alekstheod requested a review from yuriivcs May 21, 2026 06:32
@alekstheod alekstheod force-pushed the rocm_clean_up_hipcc_wrapper branch from 3bff893 to c39d07a Compare May 21, 2026 06:51
Copy link
Copy Markdown
Collaborator

@yuriivcs yuriivcs left a comment

Choose a reason for hiding this comment

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

LGTM

@yuriivcs yuriivcs merged commit a3bf5be into google-ml-infra:main May 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants