[Openmp-commits] [PATCH] D120089: [OpenMP][WIP] Explicitly deinitialize device resources

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 17 14:18:29 PST 2022


tianshilei1992 added a comment.

I don't think this patch can fix the first issue because we don't know whether the plugin has already been destroyed when objects from `libomptarget` are destroyed. I had experience that calling plugin functions in destructor of one object from `libomptarget` caused crash because plugin has already been released.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120089



More information about the Openmp-commits mailing list