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

SYCL RelWithDebInfo Build: Add -g1 #3429

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Conversation

WeiqunZhang
Copy link
Member

Add -g1 to RelWithDebInfo build with oneAPI SYCL compiler (i.e., IntelLLVM). This is because with -g the link step can be very slow and the final executable can be order of magnitude bigger than that generated with -g1.

This actually passes -g -g1 to the compiler. The first flag -g comes from CMake with the RelWithDebInfo build type. Here, the order of the two flags matter, because the latter flag -g1 overrides -g.

Add `-g1` to RelWithDebInfo build with oneAPI SYCL compiler (i.e.,
IntelLLVM). This is because with `-g` the link step can be very slow and the
final executable can be order of magnitude bigger than that generated with
`-g1`.

This actually passes `-g -g1` to the compiler. The first flag `-g` comes
from CMake with the RelWithDebInfo build type. Here, the order of the two
flags matter, because the latter flag `-g1` overrides `-g`.
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Thank you!

@ax3l ax3l merged commit ed1b3a1 into AMReX-Codes:development Jul 25, 2023
66 checks passed
@WeiqunZhang WeiqunZhang deleted the icpx-g1 branch July 25, 2023 02:07
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.

2 participants