Description
Main idea
NVIDIA considers FindCUDA.cmake (find_package(CUDA)
) deprecated: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#importing-tarballs-into-cmake. The common approach to consume cudatoolkit today is to use FindCUDAToolkit.cmake (find_package(CUDAToolkit COMPONENTS cudart cublas ...)
).
Aside from FindCUDA being obsolete, there are notable differences between the modules: e.g. FindCUDAToolkit.cmake
allows its CUDAToolkit_ROOT
variable to take the form of a list of paths, and this way it supports splayed installations of cudatoolkit, where different components (cudart, cublas, ...) may reside in different prefixes (as is the case e.g. in nixpkgs)
Other sci-comp projects are moving away from FindCUDA.cmake
too, e.g. pytorch/pytorch#76082
Thanks!
Anything else?
No response