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

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 07:26:00 PST 2023


alexfh added a comment.

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


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