[all-commits] [llvm/llvm-project] d5d836: [Libomptarget] Add test config for compiling in LT...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jun 14 07:16:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5d836635c76bbd3752587a84ae53ed88883d062
      https://github.com/llvm/llvm-project/commit/d5d836635c76bbd3752587a84ae53ed88883d062
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M openmp/libomptarget/CMakeLists.txt
    M openmp/libomptarget/plugins/CMakeLists.txt
    M openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
    M openmp/libomptarget/plugins/cuda/CMakeLists.txt
    M openmp/libomptarget/test/lit.cfg
    M openmp/libomptarget/test/mapping/data_member_ref.cpp
    M openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers.cpp
    M openmp/libomptarget/test/mapping/declare_mapper_nested_mappers.cpp
    M openmp/libomptarget/test/mapping/lambda_by_value.cpp
    M openmp/libomptarget/test/mapping/lambda_mapping.cpp
    M openmp/libomptarget/test/mapping/map_back_race.cpp
    M openmp/libomptarget/test/mapping/ompx_hold/struct.c
    M openmp/libomptarget/test/offloading/bug49021.cpp
    M openmp/libomptarget/test/offloading/bug49334.cpp
    M openmp/libomptarget/test/offloading/bug49779.cpp
    M openmp/libomptarget/test/offloading/bug51781.c
    M openmp/libomptarget/test/offloading/host_as_target.c
    M openmp/libomptarget/test/offloading/memory_manager.cpp
    M openmp/libomptarget/test/offloading/parallel_offloading_map.cpp
    M openmp/libomptarget/test/offloading/static_linking.c
    M openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp
    M openmp/libomptarget/test/unified_shared_memory/api.c

  Log Message:
  -----------
  [Libomptarget] Add test config for compiling in LTO-mode

We are planning on making LTO the default compilation mode for
offloading. In order to make sure it works we should run these tests on
the test suite. AMDGPU already uses the LTO compilation path for its
linking, but in LTO mode it also links the static library late.

Performing LTO requires the static library to be built, if we make the
change this will be a hard requirement and the old bitcode library will
go away. This means users will need to use either a two-step build or a
runtimes build for libomptarget.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list