[clang] [CUDA] Add device-side kernel launch support (PR #165519)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 17:07:20 PST 2025
================
@@ -525,6 +564,11 @@ Expected<SmallVector<StringRef>> getInput(const ArgList &Args) {
object::Archive::create(Buffer);
if (!LibFile)
return LibFile.takeError();
+ // Skip extracting archives with fat binaries. Forward them to nvlink.
+ if (hasFatBinary(**LibFile)) {
+ ForwardArchives.emplace_back(Args.MakeArgString(*Filename));
----------------
darkbuck wrote:
fatbinary format is not publicly available. AFAIK, NV tools are necessary to extract device object files from fatbin. Shall we just put those fatbin archives at the end? `cudadevrt` is the only fatbin archive I met so far.
https://github.com/llvm/llvm-project/pull/165519
More information about the cfe-commits
mailing list