[Openmp-commits] [PATCH] D103608: [OpenMP][Tools] Fix Archer handling of task dependencies

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 7 01:05:10 PDT 2021


Hahnfeld added a comment.

I think at least this patch needs a `clang-format`, maybe also applies to the other recent patches.



================
Comment at: openmp/tools/archer/ompt-tsan.cpp:887-897
+static void __ompt_tsan_release_dependencies(TaskData *task) {
+  for (unsigned i = 0; i < task->DependencyCount; i++) {
+    task->Dependencies[i].AnnotateEnd();
+  }
+}
+
+static void __ompt_tsan_acquire_dependencies(TaskData *task) {
----------------
Can we name internal functions without double underscores, which are actually not allowed by the standard? (`__ompt_tsan_release_task` should be renamed eventually) Also I understand release + acquire semantics, but "release" is actually a bit confusing because it's not about actually releasing the memory AFAICT. I understand it already was confusing before, but if somebody has a better proposal for naming (I don't right now) that would be great.


================
Comment at: openmp/tools/archer/ompt-tsan.cpp:920
   if (ToTask->execution == 0) {
-    ToTask->execution++;
-    for (unsigned i = 0; i < ToTask->DependencyCount; i++) {
----------------
Is this removed on purpose?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103608



More information about the Openmp-commits mailing list