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

Christian Sigg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 14 23:07:00 PDT 2020


csigg added a comment.

> I'll be adding a `CUDA_ROOT` option to CMake that will be passed to clang as `--cuda-path`.

I'm not familiar with CMake and whether that option is picked up from an environment variable, but on Windows that environment variable that the CUDA installer sets is `CUDA_PATH`:
https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#build-customizations-for-existing-projects

On Linux you are expected to add the <cuda root>/bin directory to the `PATH` environment variable.


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