[all-commits] [llvm/llvm-project] 5ffecd: [Libomptarget] Don't build the device runtime with...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon May 16 15:18:48 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ffecd28c9fb3098049f0477759f779122153499
https://github.com/llvm/llvm-project/commit/5ffecd28c9fb3098049f0477759f779122153499
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-05-16 (Mon, 16 May 2022)
Changed paths:
M openmp/libomptarget/DeviceRTL/CMakeLists.txt
Log Message:
-----------
[Libomptarget] Don't build the device runtime without a new Clang
The OpenMP device offloading library is a bitcode library and thus only
expect to build and linked with the same version of clang that was used
to create it. This somewhat copmlicates the building process as we
require the Clang that was just built to be used to create the library.
This is either done with a two-step build, where OpenMP is built with
the Clang that was just installed, or through the
`-DLLLVM_ENABLE_RUNTIMES=openmp` option. This has always been the case,
but recent changes have caused this to make it difficult to build the
rest of OpenMP. This patchs adds a check to not build the OpenMP device
runtime if the current compiler is not Clang with the same version as
the LLVM installation. This should allow users to build OpenMP as a
project using any compiler without it erroring out due to the bitcode
library, but if users require it they will need to use the above methods
to compile it.
Reviewed By: jdoerfert, tianshilei1992, ye-luo
Differential Revision: https://reviews.llvm.org/D125698
More information about the All-commits
mailing list