[PATCH] D108247: [CUDA] Improve CUDA version detection and diagnostics.
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 19 09:48:50 PDT 2021
tra added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:209-211
+ Version = FS.exists(LibDevicePath + "/libdevice.10.bc")
+ ? Version = CudaVersion::NEW
+ : Version = CudaVersion::CUDA_70;
----------------
Hahnfeld wrote:
> The compiler is now warning here because of the assignment to `VERSION` in the ternary operator
I'll fix it shortly. I also need to figure out why my build does not produce the warning.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108247/new/
https://reviews.llvm.org/D108247
More information about the cfe-commits
mailing list