Skip to content

[rocWMMA] Add --gc-sections flag to clean up number of ELF sections#2771

Merged
idass1990 merged 1 commit into
developfrom
darren-amd/add-gc-sections-flag
Nov 24, 2025
Merged

[rocWMMA] Add --gc-sections flag to clean up number of ELF sections#2771
idass1990 merged 1 commit into
developfrom
darren-amd/add-gc-sections-flag

Conversation

@darren-amd
Copy link
Copy Markdown
Contributor

@darren-amd darren-amd commented Nov 19, 2025

Motivation

Fixes #2769. Currently when TheRock is building python packages, it is using the patchelf --print-rpath utility to normalize rpaths. Because the generated test binaries have over 64k ELF sections, this is failing, so this fix is aimed at cleaning up the binaries.

The two failing binaries were:
gemm_PGR1_LB2_MP0_MB_CP_WG-validate: ~66k -> ~44k sections
gemm_PGR1_LB2_MP0_MB_CP_WV-validate ~66k -> ~43k sections

Technical Details

Add the --gc-sections flag when building the rocWMMA tests

Test Plan

Verify that rocWMMA builds correctly

Test Result

rocWMMA builds with the resultant test binaries having fewer ELF sections

Submission Checklist

@darren-amd darren-amd requested a review from a team as a code owner November 19, 2025 19:29
@darren-amd darren-amd changed the title Add --gc-sections flag to clean up number of ELF sections [rocWMMA] Add --gc-sections flag to clean up number of ELF sections Nov 19, 2025
Copy link
Copy Markdown
Contributor

@bsyrowik bsyrowik left a comment

Choose a reason for hiding this comment

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

Thanks Darren! Could you please update the PR description with the numbers you are seeing for the reduction in ELF sections for the binaries in question?

@bsyrowik
Copy link
Copy Markdown
Contributor

It may be a while before the rocwmma test timeouts are sorted out. In the meantime, feel free to have a gardener help with submitting this.

@idass1990 idass1990 merged commit d336e59 into develop Nov 24, 2025
18 of 23 checks passed
@idass1990 idass1990 deleted the darren-amd/add-gc-sections-flag branch November 24, 2025 21:32
assistant-librarian Bot pushed a commit to ROCm/rocWMMA that referenced this pull request Nov 24, 2025
[rocWMMA] Add --gc-sections flag to clean up number of ELF
 sections (#2771)
@bsyrowik bsyrowik mentioned this pull request Nov 26, 2025
1 task
ammallya pushed a commit that referenced this pull request Feb 3, 2026
[ROCm/composable_kernel commit: 8d43155]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue]: rocWMMA test binaries have > 64k ELF sections

3 participants