[PATCH] D89832: [CUDA] Extract CUDA version from cuda.h if version.txt is not found

Evgeny Mankov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 02:12:32 PDT 2020


emankov requested changes to this revision.
emankov added inline comments.
This revision now requires changes to proceed.


================
Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:76-77
+    return CudaVersion::CUDA_102;
+  if (raw_version < 11010)
+    return CudaVersion::CUDA_110;
+  return CudaVersion::LATEST;
----------------
Please, add `CudaVersion::CUDA_111` declaration in `Cuda.h` and a corresponding `if` here. 
Btw, `switch` is possible here. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89832/new/

https://reviews.llvm.org/D89832



More information about the cfe-commits mailing list