[Openmp-commits] [PATCH] D96379: [OpenMP] Unify omptarget API and usage wrt. `__tgt_async_info`
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 10 14:22:55 PST 2021
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/src/omptarget.cpp:644
- // We need to synchronize before deallocating data.
- // If AsyncInfo is nullptr, the previous data transfer (if has) will be
+ // TODO: We should not synchronized here but pass the AsyncInfo object to the
+ // allocate/deallocate device APIs. We need to synchronize before deallocating
----------------
I'm lost in the comment...We don't need the synchronization here if we have async data free.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96379/new/
https://reviews.llvm.org/D96379
More information about the Openmp-commits
mailing list