[nvptx-arch] Remove `find_package(CUDA)` as it has been deprecated.
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 19:24:34 +0000 (13:24 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 19:58:00 +0000 (13:58 -0600)
commit759dec253695f38a101c74905c819ea47392e515
tree0b6617dd27828776c45d68d69fba5625795eb543
parent5f1448fe1585b5677d5f0064e4eeac3b493d8a18
[nvptx-arch] Remove `find_package(CUDA)` as it has been deprecated.

Since D137724 and the LLVM 17 release we have updated to CMake version
3.20. This means we can use `find_package(CUDAToolkit)` instead as the
legacy module is deprecated.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D142570
clang/tools/nvptx-arch/CMakeLists.txt