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

via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 3 04:23:20 PDT 2024


jprotze 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.

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


More information about the Openmp-commits mailing list