Use FindCUDAToolkit instead of FindCUDA
twesterhout opened this issue · comments
The FindCUDA module is considered deprecated: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#importing-tarballs-into-cmake, and the official documentation suggests to use FindCUDAToolkit instead.
It's currently used here:
Line 64 in 23ee065
Would you be open to switching to FindCUDAToolkit?
(The issue arose when packaging ArrayFire for Nix, see NixOS/nixpkgs#250753 (comment))
Hey @twesterhout
We are aware of this issue and we should be making the transition soon. We have dropped support for some of the older versions of CMake that required this usage and it didn't yet hav ethe FindCUDAToolkit file. We need to do a couple of other changes to bring our CMake configuration files up to the latest releases including fixing FetchContent.