Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hanseuljun
Copy link
Contributor

@hanseuljun hanseuljun commented Nov 16, 2022

Using find_package resulted in missing CUDA::cudart, CUDA::cublas, etc, from my machine.
WSL Ubuntu 20, CMake 3.24, CUDA 12.

Using find_package(CUDAToolkit) solved this issue. Also, FindCUDA is departed since CMake 3.10!

Have not tested this in other machines and new to using CUDA, so maybe this might be a wrong approach to this problem...

references:
https://cmake.org/cmake/help/latest/module/FindCUDA.html
https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html

@ahojnnes ahojnnes merged commit b02e939 into colmap:dev Nov 16, 2022
@ahojnnes
Copy link
Contributor

Thank you.

@takeru
Copy link

takeru commented Nov 18, 2022

Failed to build on my Ubuntu 22.04.

@ahojnnes
Copy link
Contributor

@takeru Could you post an error Message or would you have time to submit a fix? Thank you.

@fadenb
Copy link

fadenb commented Nov 19, 2022

Failed to build on my Ubuntu 22.04.

While the build does not fail for me the method fails to build something with CUDA support:

When I force find_package(CUDA ${CUDA_MIN_VERSION} QUIET) it is properly detected:

-- Autodetected CUDA architecture(s):  8.6 8.6 8.6 8.6
-- Enabling CUDA support (version: 11.8, archs: sm_86)

Using find_package(CUDAToolkit ${CUDA_MIN_VERSION} QUIET) results in:

-- Disabling CUDA support

I am on Ubuntu 22.04.

@takeru
Copy link

takeru commented Nov 21, 2022

While the build does not fail for me the method fails to build something with CUDA support:

That's what I meant.

@lnexenl
Copy link

lnexenl commented Nov 23, 2022

Also failed on Arch Linux, with CUDA 11.8 and cmake 3.25.0

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

Successfully merging this pull request may close these issues.

5 participants