Skip to content

CMake Error: CUDA_CUDA_LIBRARY (ADVANCED) set to NOTFOUND #839

Answered by madisongh
ElD4n1 asked this question in Q&A
Discussion options

You must be logged in to vote

First it says Found CUDA and then it complains that CUDA_CUDA_LIBRARY (ADVANCED) is set to NOTFOUND? Has this anything to do with the (ADVANCED) and there is something else missing?

The old and long-deprecated FindCUDA CMake module has trouble locating the CUDA driver library (libcuda.so) in some cases, and evidently this is one of them. The more modern approach is to use CUDA language support in CMake, which should be better about using the lib/stub directory when linking.

Otherwise, you may have to find a way to append the library (either the stub or, if you add tegra-libraries to the DEPENDS setting in your recipe, the real copy, which would be at /usr/lib/libcuda.so in your recipe s…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ElD4n1
Comment options

Answer selected by ElD4n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants