[all-commits] [llvm/llvm-project] d56440: [OpenMP] Change CMake Configuration to Build for H...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Oct 8 09:10:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d564409946a5a13cb6391fc0fec54dcbd6f6d249
      https://github.com/llvm/llvm-project/commit/d564409946a5a13cb6391fc0fec54dcbd6f6d249
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M clang/CMakeLists.txt
    M openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP] Change CMake Configuration to Build for Highest CUDA Architecture by Default

Summary:
This patch changes the CMake files for Clang and Libomptarget to query the
system for its supported CUDA architecture. This makes it much easier for the
user to build optimal code without needing to set the flags manually. This
relies on the now deprecated FindCUDA method in CMake, but full support for
architecture detection is only availible in CMake >3.18

Reviewers: jdoerfert ye-luo

Subscribers: cfe-commits guansong mgorny openmp-commits sstefan1 yaxunl

Tags: #clang #OpenMP

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




More information about the All-commits mailing list