[Openmp-dev] Implementation of nowait and async in libomptarget

Shilei Tian via Openmp-dev openmp-dev at lists.llvm.org
Mon Sep 14 15:24:42 PDT 2020


Hi Manoel,

You could refer to https://reviews.llvm.org/D77609 <https://reviews.llvm.org/D77609> and https://reviews.llvm.org/D78075 <https://reviews.llvm.org/D78075> for more design details. :-)

Regards,
Shilei

> On Sep 14, 2020, at 5:34 PM, Johannes Doerfert <johannesdoerfert at gmail.com> wrote:
> 
> Hi Manoel,
> 
> Shilei (CC'ed) has a proper implementation of target nowait, for now we basically implement it synchronously.
> 
> The reviews are online and Shilei will share the links. Feel free to join our weekly meeting [1] to as we discuss it there as well.
> 
> ~ Johannes
> 
> [1] https://docs.google.com/document/d/1Tz8WFN13n7yJ-SCE0Qjqf9LmjGUw0dWO9Ts1ss4YOdg/edit?usp=sharing
> 
> 
> On 9/14/20 3:03 PM, Römmer, Manoel via Openmp-dev wrote:
>> Hi everyone,
>> 
>> I'm looking into the use of `nowait` with target regions and I have some questions about the implementation in libomptarget, maybe someone here can help me with some details.
>> 
>> Libomptarget has an optional async interface, for plugins to implement. I orignally expected, that nowait target regions would be implemented with a call to __tgt_run_target_region_async(), but the implementation in libomptarget seems to always use the async interface when available (even for blocking target region executions) and always tries to synchronize after a target region is executed.
>> 
>> Can someone tell me if I got this right and how a `#pragma omp target nowait` is handled by the openmp runtime?
>> 
>> 
>> Thanks,
>> 
>> Manoel Römmer
>> _______________________________________________
>> Openmp-dev mailing list
>> Openmp-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20200914/f5d2b6ee/attachment.html>


More information about the Openmp-dev mailing list