This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Make `__tgt_async_info` a RAII object
AbandonedPublic

Authored by jdoerfert on Feb 10 2021, 9:53 AM.

Details

Summary

The AsyncInfo should be passed everywhere and it should automatically
ensure synchronization. To this end we make it a RAII object that will
synchronize at the end of its lifetime as necessary.

Diff Detail

Event Timeline

jdoerfert created this revision.Feb 10 2021, 9:53 AM
jdoerfert requested review of this revision.Feb 10 2021, 9:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2021, 9:53 AM
Herald added a subscriber: sstefan1. · View Herald Transcript

If we want to use event later for target task, this design needs to be revised because the life time of the async info object will be out of its scope.

jdoerfert abandoned this revision.Feb 10 2021, 10:29 AM

I will abandon this. We probably are fine with synchronizing explicitly given that we want to look at the return status anyway.

If we want to use event later for target task, this design needs to be revised because the life time of the async info object will be out of its scope.