I am trying to build something with CMake (it has to be an older version because of the project) and when I run it I get this error:
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindCUDA.cmake:617 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
libethash-cuda/CMakeLists.txt:3 (FIND_PACKAGE)
I have looked everywhere online but I only find solutions for Linux.
So, my CMake (v3.7.0) found the toolkit automatically. It's located in:
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0
In general, I've found on Windows it has difficulty finding the SDK which is in:
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0
To set CUDA_TOOLKIT_ROOT_DIR in CMake on windows, open up cmake-gui, run "configure" once then go to "advanced:"
Scroll down until you see CUDA_TOOLKIT_ROOT_DIR:
And set it to your CUDA toolkit directory (which is probably C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0
if you're using CUDA version 8.0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With