[PATCH] D114601: Read path to CUDA from env. variable CUDA_PATH on Windows

Mojca Miklavec via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 25 08:16:40 PST 2021


mojca added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:138
   } else if (HostTriple.isOSWindows()) {
-    for (const char *Ver : Versions)
-      Candidates.emplace_back(
-          D.SysRoot + "/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v" +
-          Ver);
+    Candidates.emplace_back(llvm::sys::Process::GetEnv("CUDA_PATH"));
   } else {
----------------
Sorry, wrong patch. I'll upload it again.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114601



More information about the cfe-commits mailing list