[Openmp-commits] [openmp] [OpenMP][OMPT] Correctly pass `parallel_data` for serial league (PR #206334)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 29 02:44:04 PDT 2026


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 origin/main HEAD --extensions cpp,c,h -- openmp/runtime/src/kmp_runtime.cpp openmp/runtime/test/ompt/callback.h openmp/runtime/test/ompt/teams/serialized.c --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index 863b4d4df..3fe09630a 100644
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -682,7 +682,7 @@ static void on_ompt_callback_implicit_task(ompt_scope_endpoint_t endpoint,
       // Only check initial task not created by teams construct
       if (team_size == 1 && thread_num == 1 && parallel_data->ptr)
         printf("%s\n", "0: parallel_data initially not null");
-      if(!parallel_data->value)
+      if (!parallel_data->value)
         parallel_data->value = ompt_get_unique_id();
       printf("%" PRIu64 ":" _TOOL_PREFIX
              " ompt_event_initial_task_begin: parallel_id=%" PRIx64

``````````

</details>


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


More information about the Openmp-commits mailing list