[Openmp-commits] [PATCH] D102587: [OpenMP] Refine CMake code for libomptarget

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun May 16 14:48:03 PDT 2021


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, JonChesterfield.
Herald added subscribers: kerbowa, guansong, yaxunl, mgorny, nhaehnle, jvesely.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

Building `libomptarget` and its other components, such as `deviceRTLs`,
plugins, requires LLVM or other functionalities in compiler. They're currently
not handled very well. This patch (or series of patches in the near future)
refines the whole detection code. The basic idea is, if `libomptarget` cannot be
built due to any reason, it should not block the configuration or compilation of
the whole OpenMP project. Not everyone wants target offloading. This patch is the
first patch to clean logics for `libomptarget`. It simply does one thing: if
the condition is not met, simply skip `libomptarget`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102587

Files:
  openmp/CMakeLists.txt
  openmp/libomptarget/CMakeLists.txt
  openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
  openmp/libomptarget/plugins/amdgpu/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102587.345729.patch
Type: text/x-patch
Size: 4710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210516/6407437d/attachment.bin>


More information about the Openmp-commits mailing list