Skip to content

Conversation

@ampandey-AMD
Copy link

library(libclang_rt.asan.x86_64.so)) for OpenMP Offloading applications when ASan.

Copy link
Contributor

@ronlieb ronlieb left a comment

Choose a reason for hiding this comment

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

LGTM, want @estewart08 to be final approver

@estewart08
Copy link
Contributor

Cannot just always add --disable-new-dtags as ROCm uses RUNPATH. We need this for AOMP only as we use RPATH.

@estewart08
Copy link
Contributor

Add a condition to check if the Args do not contain --enable-new-dtags, then we can add --disable-new-dtags. ROCm uses a config file to force --enable-new-dtags by default so it will be present. This also brings up the question if AOMP can just use a config file as well.

library(libclang_rt.asan.x86_64.so)) for OpenMP Offloading applications
when ASan.
@ampandey-AMD
Copy link
Author

Cannot just always add --disable-new-dtags as ROCm uses RUNPATH. We need this for AOMP only as we use RPATH.

Done.

// Add Fortran runtime libraries
if (needFortranLibs(D, Args)) {
ToolChain.AddFortranStdlibLibArgs(Args, CmdArgs);
CmdArgs.push_back("-rpath");
Copy link
Contributor

@estewart08 estewart08 Apr 23, 2024

Choose a reason for hiding this comment

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

Does this need guarded with ! needsAsanRt?

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.

4 participants