[all-commits] [llvm/llvm-project] 759dec: [nvptx-arch] Remove `find_package(CUDA)` as it has...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jan 25 11:58:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 759dec253695f38a101c74905c819ea47392e515
      https://github.com/llvm/llvm-project/commit/759dec253695f38a101c74905c819ea47392e515
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M clang/tools/nvptx-arch/CMakeLists.txt

  Log Message:
  -----------
  [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


  Commit: c5686220460550476ddcc809e46b02ba44f2ee7e
      https://github.com/llvm/llvm-project/commit/c5686220460550476ddcc809e46b02ba44f2ee7e
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
    M openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
    M openmp/libomptarget/plugins/cuda/CMakeLists.txt

  Log Message:
  -----------
  [Libomptarget] 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 that `find_package(CUDA)` is officially deprecated and
can be replaced with `find_package(CUDAToolkit)` instead. This patch
does this and also cleans up a bit of the CMake.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D142568


  Commit: 84d0243d215ee6fddc72675a73e273eb40b172a6
      https://github.com/llvm/llvm-project/commit/84d0243d215ee6fddc72675a73e273eb40b172a6
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
    M openmp/libomptarget/plugins/cuda/CMakeLists.txt

  Log Message:
  -----------
  [Libomptarget] Clean up CUDA plugin CMake files

Clean up this file after changing it in D142568.

Depends on D142568

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D142573


Compare: https://github.com/llvm/llvm-project/compare/5f1448fe1585...84d0243d215e


More information about the All-commits mailing list