[Openmp-commits] [openmp] [OpenMP][OMPT] Add missing callbacks for asynchronous target tasks (PR #93472)

Jan André Reuter via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 3 04:31:45 PDT 2024


Thyre wrote:

> > This event sequence shows that the task create now uses `target` and that the `task switch` events are now fixed as well. I'm curious though: Why do we see so many switch events?
> 
> Your trace shows how stupid `target nowait` is implemented at the moment :) The wrapper task is enqueued and immediately picked up for checking whether the kernel finished execution. This enqueuing and dequeuing is done with increasing wait time inside libomptarget until the kernel finished - even if it is not even started yet.

That explains what we're seeing. With that out of the way, there should be nothing blocking the PR from my side.

https://github.com/llvm/llvm-project/pull/93472


More information about the Openmp-commits mailing list