[Openmp-commits] [PATCH] D107656: [OpenMP] Use events and taskyield in target nowait task to unblock host threads

Ravi Narayanaswamy via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 6 14:49:57 PDT 2021


RaviNarayanaswamy added inline comments.


================
Comment at: openmp/libomptarget/src/device.cpp:546
+  } else {
+    AsyncInfo.setEventSupported(false);
+    return OFFLOAD_SUCCESS;
----------------
Isn't this initialized to false when the AsyncInfo is created.


================
Comment at: openmp/libomptarget/src/omptarget.cpp:73
   }
   return Result;
 }
----------------
ye-luo wrote:
> RaviNarayanaswamy wrote:
> > Result is not set on all paths
> When leaving line 62, the return value is OFFLOAD_SUCCESS as line 28 sets it
I missed that.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107656/new/

https://reviews.llvm.org/D107656



More information about the Openmp-commits mailing list