[Openmp-commits] [PATCH] D142008: [libomptarget] Delay recursive shared library registrations until offload RTLs are loaded

Mészáros Gergely via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 19 02:32:56 PST 2023


Maetveis updated this revision to Diff 490427.
Maetveis marked 3 inline comments as done.
Maetveis added a comment.

Replace thread local with class member + atomic thread Id. Also factor out the delayed handling into member functions.
The reason the thread id checks are necessary is 1. avoiding race conditions. 2. not returning before the library is registered in threads that are not doing `loadRtls`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142008/new/

https://reviews.llvm.org/D142008

Files:
  openmp/libomptarget/include/rtl.h
  openmp/libomptarget/src/interface.cpp
  openmp/libomptarget/src/rtl.cpp
  openmp/libomptarget/test/offloading/dynamic_module_multiple.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142008.490427.patch
Type: text/x-patch
Size: 5501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230119/8af61fcb/attachment.bin>


More information about the Openmp-commits mailing list