From c092b4be0b5c95f0c28f5bab7570dd6c7ef64b87 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 19 Mar 2021 16:04:22 -0700 Subject: [PATCH] CUDA: Hint CUDAToolkit_ROOT ``` CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeDetermineCUDACompiler.cmake:166 (message): Could not find nvcc, please set CUDAToolkit_ROOT. ``` --- .github/workflows/windows.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 40a6d5f765..abd91a5309 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -84,6 +84,7 @@ jobs: shell: cmd run: | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64 + SET "PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin\;%PATH%" cmake -S . -B build ^ -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ @@ -93,7 +94,8 @@ jobs: -DAMReX_GPU_BACKEND=CUDA ^ -DCMAKE_CXX_STANDARD=14 ^ -DCMAKE_CUDA_STANDARD=14 ^ - -DAMReX_CUDA_ARCH=6.0 + -DAMReX_CUDA_ARCH=6.0 ^ + -DCUDAToolkit_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1" cmake --build build -j 2 # use "cmd", see https://gitlab.kitware.com/cmake/cmake/-/issues/20281 # -DAMReX_PARTICLES=ON