[PATCH] D138862: [Clang] Do not set offload kind in a freestanding build

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 15:06:09 PST 2022


tra added a comment.

> we should expect it to be handled externally.

Can you give more details on how it will work? Something/somewhere would need to generate the glue code to register kernels w/ CUDA runtime.
Are you saying that we'll have some way to tell the final linking stage that all offloaded functions with unspecified offload kind must be treated as if they need runtime X, and the appropriate glue will be generated for them?

If you mean that it would need to be handled by the end user, it may be problematic as they would need to have access to the GPU binaries, the kernel names they contain and would need to further generate host-side kernel launch stubs matching the kernel names.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138862/new/

https://reviews.llvm.org/D138862



More information about the cfe-commits mailing list