[PATCH] D75811: [CUDA] Choose default architecture based on CUDA installation

Raul Tambre via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 7 23:29:40 PST 2020


tambre added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:2579
+      if (Version == CudaVersion::UNKNOWN) {
+        C.getDriver().Diag(clang::diag::err_drv_cuda_unknown_version)
+            << VersionString;
----------------
This error is hit when simply running `clang++ -v`, because a `CudaToolchain` isn't created. The `CudaInstallation` is instead created in `Generic_GCC`. My current approach of propagating the current CUDA version to here seems even worse now. Ignoring an unknown version doesn't seem like a good idea either.
Ideas?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75811





More information about the cfe-commits mailing list