[PATCH] D108247: [CUDA] Improve CUDA version detection and diagnostics.

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 19 08:39:14 PDT 2021


Hahnfeld 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;
----------------
The compiler is now warning here because of the assignment to `VERSION` in the ternary operator


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