Skip to content

FindCUDA: CMake doesn't discover paths to some of the CUDA libraries

When I use CMake (v3.13.4 , on Devuan 3.0) with a CUDA-language project, it discovers the paths of many libraries, e.g.:

CUDA_cufft_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcufft.so
CUDA_cupti_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcupti.so
CUDA_curand_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcurand.so
CUDA_cusolver_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcusolver.so
CUDA_cusparse_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcusparse.so

and so on (those are lines for a CMakeCache.txt). However, it misses two libraries which I happen to need: The OpenCL library and the nVIDIA Toolkit Extensions (nvtx or nvToolsExt). It should really look for those as well, especially seeing how they are often (usually?) in the same place as all the rest of those.

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