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

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 07:28:31 PST 2023


jhuber6 added a comment.

In D140158#4082789 <https://reviews.llvm.org/D140158#4082789>, @alexfh wrote:

> This patch breaks our cuda compilations. The output file isn't created after it:
>
>   $ echo 'extern "C" __attribute__((global)) void q() {}' >q.cc
>   $ good-clang \
>       -nocudainc -x cuda \
>       --cuda-path=somepath/cuda/ \
>       -Wno-unknown-cuda-version --cuda-device-only \
>       -c q.cc -o qqq-good.o \
>     && bad-clang \
>       -nocudainc -x cuda \
>       --cuda-path=somepath/cuda/ \
>       -Wno-unknown-cuda-version --cuda-device-only \
>       -c q.cc -o qqq-bad.o \
>     && ls qqq*.o
>   qqq-good.o

https://github.com/llvm/llvm-project/issues/60301 Still broken after this fix?


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