[Openmp-commits] [openmp] [OpenMP] Use new OMPT state and sync kinds for barrier events (PR #95602)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Jun 14 14:11:53 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 53c93a33be8cc78c35eccbe75053344fc9b2346b beb2a1d759b673054b7dfa6a9bcb5990aa13e34c -- openmp/runtime/src/kmp_barrier.cpp openmp/runtime/src/kmp_runtime.cpp openmp/runtime/src/kmp_wait_release.h openmp/runtime/src/ompt-specific.cpp openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c b/openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c
index 907c149b58..f1c08c1067 100644
--- a/openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c
+++ b/openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c
@@ -96,12 +96,12 @@ on_ompt_callback_sync_region(
   case ompt_sync_region_barrier_teams:
   case ompt_sync_region_barrier_implementation:
     printf("%" PRIu64 ": %s: parallel_id=%" PRIu64 ", task_id=%" PRIu64
-           ", codeptr_ra=%p\n", ompt_get_thread_data()->value, event_name,
+           ", codeptr_ra=%p\n",
+           ompt_get_thread_data()->value, event_name,
            parallel_data ? parallel_data->value : 0, task_data->value,
            codeptr_ra);
     break;
-  default:
-    ; // do nothing
+  default:; // do nothing
   }
 }
 
@@ -132,12 +132,12 @@ on_ompt_callback_sync_region_wait(
   case ompt_sync_region_barrier_teams:
   case ompt_sync_region_barrier_implementation:
     printf("%" PRIu64 ": %s: parallel_id=%" PRIu64 ", task_id=%" PRIu64
-           ", codeptr_ra=%p\n", ompt_get_thread_data()->value, event_name,
+           ", codeptr_ra=%p\n",
+           ompt_get_thread_data()->value, event_name,
            parallel_data ? parallel_data->value : 0, task_data->value,
            codeptr_ra);
     break;
-  default:
-    ; // do nothing
+  default:; // do nothing
   }
 }
 

``````````

</details>


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


More information about the Openmp-commits mailing list