Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust debug info argument for HIP compiler #3761

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

WeiqunZhang
Copy link
Member

@WeiqunZhang WeiqunZhang commented Feb 14, 2024

It is reported in #3759 that ROCm 5.3.0-5.7.1 fail at the link stage since #3742. Replacing -g with -gline-tables-only -fdebug-info-for-profiling solves the issue. Note that for Intel SYCL compilers, we use these two arguments too.

No changes are made to CMake because in Realease build type, no debug info is added.

It is reported in AMReX-Codes#3742 that ROCm 5.3.0-5.7.1 fail at the link stage since
`-gline-tables-only -fdebug-info-for-profiling` solves the issue. Note that
for Intel SYCL compilers, we use these two arguments too.

No changes are made to CMake because in Realease build type, no debug info
is added.
@WeiqunZhang WeiqunZhang linked an issue Feb 14, 2024 that may be closed by this pull request
@WeiqunZhang
Copy link
Member Author

This is how the arguments affect the executable size for Tests/Amr/Advection_AmrCore.

| arguments                                     |     size |
|-----------------------------------------------+----------|
| -gline-tables-only -fdebug-info-for-profiling | 16805040 |
| -gline-tables-only                            | 13928648 |
| -g                                            | 36076920 |

@WeiqunZhang WeiqunZhang merged commit c3e7060 into AMReX-Codes:development Feb 23, 2024
68 of 69 checks passed
@WeiqunZhang WeiqunZhang deleted the hip_debinfo branch February 23, 2024 02:19
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.

#3742 leads to HIP compile issues
2 participants