[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:54:54 PST 2023
alexfh added a comment.
In D140158#4082804 <https://reviews.llvm.org/D140158#4082804>, @jhuber6 wrote:
> 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?
That works. Thanks!
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