[Openmp-commits] [PATCH] D127367: [OpenMP] [OMPT] [7/8] Invoke tool-supplied callbacks before and after target launch and data transfer operations

Michael Halkenhäuser via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 20 12:30:49 PDT 2023


mhalk added inline comments.


================
Comment at: openmp/libomptarget/src/OmptCallback.cpp:39
-/// Thread local state for target region and associated metadata
-thread_local llvm::omp::target::ompt::Interface OmptInterface;
 
----------------
jdoerfert wrote:
> Why is the comment gone?
Has been moved to its declaration in `openmp/libomptarget/src/OmptInterface.h`.


================
Comment at: openmp/libomptarget/src/omptarget.cpp:45
+  void endSubmit() {
+    // if (!OmptEnabled) return;
+    RegionInterface.endTargetSubmit(NumTeams);
----------------
jdoerfert wrote:
> Commented code?
Yes, my bad -- as stated in my other comment there are six occurrences, all of which will be removed upon the next change.
`performIfOmptInitialized` already checks the Variable before calling `[begin|end]Submit()`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127367



More information about the Openmp-commits mailing list