[all-commits] [llvm/llvm-project] 9f8750: [OpenMP][FIX] Ensure we allow shared libraries wit...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Dec 5 15:25:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f87509b1902da2e98254f32bd32cc10eb88bb9e
      https://github.com/llvm/llvm-project/commit/9f87509b1902da2e98254f32bd32cc10eb88bb9e
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M openmp/libomptarget/include/device.h
    M openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/src/omptarget.cpp
    A openmp/libomptarget/test/Inputs/declare_indirect_func.c
    A openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c

  Log Message:
  -----------
  [OpenMP][FIX] Ensure we allow shared libraries without kernels (#74532)

This fixes two bugs and adds a test for them:
- A shared library with declare target functions but without kernels
should not error out due to missing globals.
- Enabling LIBOMPTARGET_INFO=32 should not deadlock in the presence of
indirect declare targets.




More information about the All-commits mailing list