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

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 18 11:08:23 PDT 2021


tra added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:103-104
+    std::string VersionString = CudaVersionToString(Version);
+    if (!VersionString.empty())
+      VersionString += " ";
+    D.Diag(diag::warn_drv_new_cuda_version)
----------------
Hahnfeld wrote:
> I think you have to prepend the space in order to match `CUDA version%0 is newer than`, or move the `%0`. But I didn't try locally, might be missing something.
Good catch. Fixed.


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