[Openmp-commits] [PATCH] D81054: [OpenMP] Introduce target memory manager
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Aug 22 02:54:14 PDT 2020
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/src/MemoryManager.cpp:88
+
+MemoryManagerTy::~MemoryManagerTy() {
+ // TODO: There is a little issue that target plugin is destroyed before this
----------------
This "little issue" of calling into the target plugin after it has been destroyed is a contender for this patch not working on amdgpu.
I still think the target plugin, if it wishes to use this allocator, should hold the state itself. That means the allocator can be used internally, e.g. for call frames or the parallel region malloc, as well making destruction order straightforward and correct.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81054/new/
https://reviews.llvm.org/D81054
More information about the Openmp-commits
mailing list