[Openmp-commits] [PATCH] D131089: [Libomptarget] Explicitly init / deinit libomptarget from the user

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 4 09:27:41 PDT 2022


jhuber6 added a comment.

  PM->TrlTblMtx.lock();
  if (!PM->HostEntriesBeginToTransTable.count(Desc->HostEntriesBegin)) {
    PM->HostEntriesBeginRegistrationOrder.push_back(Desc->HostEntriesBegin);
    TranslationTable &TransTable =
        (PM->HostEntriesBeginToTransTable)[Desc->HostEntriesBegin];
    TransTable.HostTable.EntriesBegin = Desc->HostEntriesBegin;
    TransTable.HostTable.EntriesEnd = Desc->HostEntriesEnd;
  }
  
  // Retrieve translation table for this library.
  TranslationTable &TransTable =
      (PM->HostEntriesBeginToTransTable)[Desc->HostEntriesBegin];
  
  DP("Registering image " DPxMOD " with RTL %s!\n", DPxPTR(Img->ImageStart),
     R.RTLName.c_str());
  registerImageIntoTranslationTable(TransTable, R, Img);
  PM->TrlTblMtx.unlock();

The deadlock behaviour I'm observing seems to be from here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131089



More information about the Openmp-commits mailing list