[all-commits] [llvm/llvm-project] 682448: [Offload][OMPT][NFCI] Call ompt_libomp_connect ins...

Michael Halkenhäuser via All-commits all-commits at lists.llvm.org
Sat Aug 8 12:56:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6824484b6e68ba7f2dff2f63e83f237112f03d9c
      https://github.com/llvm/llvm-project/commit/6824484b6e68ba7f2dff2f63e83f237112f03d9c
  Author: Michael Halkenhäuser <MichaelGerald.Halkenhauser at amd.com>
  Date:   2026-08-08 (Sat, 08 Aug 2026)

  Changed paths:
    M offload/include/OpenMP/OMPT/Callback.h
    R offload/include/OpenMP/OMPT/Connector.h
    M offload/libomptarget/OpenMP/OMPT/Callback.cpp
    M openmp/runtime/src/ompt-general.cpp

  Log Message:
  -----------
  [Offload][OMPT][NFCI] Call ompt_libomp_connect instead of dlopen libomp (#214556)

connectLibrary() reached libomp's ompt_libomp_connect through
OmptLibraryConnectorTy, which dlopens "libomp.so" and resolves the
symbol at run time. That cannot do anything the linker has not already
done: libomptarget links libomp and imports seven __kmpc_* symbols from
it, so libomp.so is a DT_NEEDED entry, and libomp defines and exports
ompt_libomp_connect unconditionally -- as a stub in kmp_utility.cpp when
built without OMPT support. Declare it, call it, and delete Connector.h.

AI-assisted.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list