[all-commits] [llvm/llvm-project] 24ecaf: [OpenMP] Add support for CPU offloading in new driver

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Feb 15 12:05:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24ecafb4132704db513d550f2edfe875d353287f
      https://github.com/llvm/llvm-project/commit/24ecafb4132704db513d550f2edfe875d353287f
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/openmp-offload.c
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [OpenMP] Add support for CPU offloading in new driver

This patch adds support for linking CPU offloading applications in the
linker wrapper. We generate the necessary linking job using the host
linker's path and library arguments. This may not be true for more
complex offloading schemes, but this is sufficient for now.

Reviewed By: jdoerfert

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


  Commit: 777039a51cf4feb5d743ed15133a0e9e51897bc2
      https://github.com/llvm/llvm-project/commit/777039a51cf4feb5d743ed15133a0e9e51897bc2
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M openmp/libomptarget/CMakeLists.txt
    M openmp/libomptarget/plugins/CMakeLists.txt
    M openmp/libomptarget/test/offloading/bug49334.cpp
    M openmp/libomptarget/test/offloading/memory_manager.cpp
    M openmp/libomptarget/test/offloading/parallel_offloading_map.cpp
    M openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp

  Log Message:
  -----------
  [Libomptarget] Run CPU offloading tests using the new driver

This patch adds a new target to the OpenMP CPU offloading tests. This
tests the usage of the new driver for CPU offloading. If this all works
then we can move to transition to the new driver as the default.

Depends on D119613

Reviewed By: jdoerfert

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


Compare: https://github.com/llvm/llvm-project/compare/9980a3f8318c...777039a51cf4


More information about the All-commits mailing list