Skip to content

Commit

Permalink
CUDA: Hint CUDAToolkit_ROOT
Browse files Browse the repository at this point in the history
```
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeDetermineCUDACompiler.cmake:166 (message):
  Could not find nvcc, please set CUDAToolkit_ROOT.
```
  • Loading branch information
ax3l committed Mar 19, 2021
1 parent febb0a0 commit c092b4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ^
Expand All @@ -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

0 comments on commit c092b4b

Please sign in to comment.