Skip to content

FindCUDAToolkit - Could NOT find CUDAToolkit (missing: CUDA_CUDART) (found version "10.2.109")

Hi,

I'm porting my code to use the brand-new FindCUDAToolkit, like this:

project(my_project CXX CUDA)

find_package(CUDAToolkit)

...

However it complains like this:

-- Could NOT find CUDAToolkit (missing: CUDA_CUDART) (found version "10.2.109")

We've been using CUDA for long time in our project, so the installation is totally fine. Why can it not find CUDART? It's located under /usr/local/cuda-10.2/targets/x86_64/lib/libcudart.so.

Thanks!

Edited by Carlos Galvez
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information