Skip to content

Conversation

@wenju-he
Copy link
Contributor

@wenju-he wenju-he commented Dec 2, 2025

Also add -fgpu-rdc to fix Unknown command line argument '-amdgpu-internalize-symbols' error when generating %t.amd.o.

Closes #20784

…spirv files

Also add `REQUIRES: amdgpu-registered-target` to fix
`Unknown command line argument '-amdgpu-internalize-symbols'` error when
generating %t.amd.o.

Closes intel#20784

/// Check devicelib and libspirv are linked for nvptx.
/// amdgpu-registered-target is required for generating %t.amd.o.
// REQUIRES: amdgpu-registered-target
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems restrictive for any tests that are testing nvidia targets only. Is that scenario important?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems restrictive for any tests that are testing nvidia targets only. Is that scenario important?

done, removed REQUIRES: amdgpu-registered-target in 7e3ed1b.

Added -fgpu-rdc as a workaround to prevent the Clang driver from passing -amdgpu-internalize-symbols to LLVM.

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.

Found one lit test Clang :: Driver/sycl-bc-device-libraries.cpp run failed in the latest code repo

2 participants