arrayfire / arrayfire

ArrayFire: a general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

find_package(CUDA 10.2)

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.