Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake FindCUDAToolkit - failed #5

Open
mdppdm opened this issue Nov 29, 2023 · 0 comments
Open

cmake FindCUDAToolkit - failed #5

mdppdm opened this issue Nov 29, 2023 · 0 comments

Comments

@mdppdm
Copy link

mdppdm commented Nov 29, 2023

I installed SUSAN on an Ubuntu 20.04 workstation running CUDA 11.4. During cmake, I got the following error:
########################################
CMake Warning at CMakeLists.txt:27 (find_package):
By not providing "FindCUDAToolkit.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"CUDAToolkit", but CMake did not find one.

Could not find a package configuration file provided by "CUDAToolkit" with
any of the following names:

CUDAToolkitConfig.cmake
cudatoolkit-config.cmake

Add the installation prefix of "CUDAToolkit" to CMAKE_PREFIX_PATH or set
"CUDAToolkit_DIR" to a directory containing one of the above files. If
"CUDAToolkit" provides a separate development package or SDK, be sure it
has been installed.

CMake Error at CMakeLists.txt:43 (message):
SUSAN does not support your CUDA toolkit version.

-- Configuring incomplete, errors occurred!
###########################################

I solved this by specifying the cuda path in CMakeLists.txt and removing the rest of the Configure CUDA section

set(CMAKE_PREFIX_PATH /usr/local/cuda)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant