[PATCH] D98902: [Clang][OpenMP][NVPTX] Fixed failure in openmp-offload-gpu.c if the system has CUDA

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 18 15:14:53 PDT 2021


tianshilei1992 added a comment.

In D98902#2635930 <https://reviews.llvm.org/D98902#2635930>, @tra wrote:

>> My question is, if DeviceOffloadingKind == Action::OFK_Cuda, and we use -S, do we also want to skip as well?
>
> I do not think so. Libdevice is needed to implement some libcalls that LLVM currently does not know how to handle.
> We do need it even when we compile with `-S`. It may work without it in many cases, but it's still needed in general.

Thanks for the answer.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98902



More information about the cfe-commits mailing list