[PATCH] D140158: [CUDA] Allow targeting NVPTX directly without a host toolchain

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 15 15:39:40 PST 2022


JonChesterfield added a comment.

If we do magic header including, we should check for the freestanding argument and not include them with that set. I would prefer we not include cuda headers into C++ source that isn't being compiled as cuda, and also not link in misc cuda library files.

Anyone who has decided to compile raw c or c++ to ptx is doing something off the beaten path, I don't think we should assume they want implicit behaviour from other programming models thrown in.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140158



More information about the cfe-commits mailing list