[all-commits] [llvm/llvm-project] 730886: [OpenMP][CMake] Use in-project clang as CUDA->IR c...

Michael Kruse via All-commits all-commits at lists.llvm.org
Fri Apr 30 10:47:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7308862ff532a9e5ca7ca787f9fcc2b8eeabb8b5
      https://github.com/llvm/llvm-project/commit/7308862ff532a9e5ca7ca787f9fcc2b8eeabb8b5
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2021-04-30 (Fri, 30 Apr 2021)

  Changed paths:
    M openmp/README.rst
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP][CMake] Use in-project clang as CUDA->IR compiler.

If available, use the clang that is already built in the same project as
CUDA compiler unless another executable is explicitly defined. This also
ensures the generated deviceRTL IR will be consistent with the version
of Clang.

This patch is required to reliably test OpenMP offloading in a buildbot
without either a two-stage build (e.g. with LLVM_ENABLE_RUNTIMES) or a
separately installed clang on the worker that will eventually become
outdated.

Reviewed By: tianshilei1992

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




More information about the All-commits mailing list