The AsyncInfo should be passed everywhere and it should offer a way to
ensure synchronization, given a libomptarget Device.
This replaces D96431.
Paths
| Differential D96438
[OpenMP] Move synchronization into `__tgt_async_info` ClosedPublic Authored by jdoerfert on Feb 10 2021, 10:35 AM.
Details Summary The AsyncInfo should be passed everywhere and it should offer a way to This replaces D96431.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Feb 16 2021, 11:58 AM This revision was landed with ongoing or failed builds.Feb 16 2021, 1:38 PM Closed by commit rGa2fc0d34db72: [OpenMP] Move synchronization into `__tgt_async_info` (authored by jdoerfert). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 324104 openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/omptarget.cpp
openmp/libomptarget/src/private.h
|
I suggest we wrap this info into another class, and bind the device object such that we will make sure that the async info object will not be synced by a wrong device.
Then __tgt_async_info is only used when we're communicating with plugin. AsyncInfo is used across the whole libomptarget.