The AsyncInfo should be passed everywhere and it should offer a way to
ensure synchronization, given a libomptarget Device.
This replaces D96431.
Differential D96438
[OpenMP] Move synchronization into `__tgt_async_info` Authored by jdoerfert on Feb 10 2021, 10:35 AM.
Details The AsyncInfo should be passed everywhere and it should offer a way to This replaces D96431.
Diff Detail
Event Timeline
| ||||||||||||||||||||||||||||||||||||||||||||||||
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.
class AsyncInfo { __tgt_async_info TheInfo; DeviceTy &Device; public: int synchronize(); };Then __tgt_async_info is only used when we're communicating with plugin. AsyncInfo is used across the whole libomptarget.