[Openmp-commits] [openmp] [OpenMP][Runtime][test] Fix ompt task testcase fail randomly (PR #72337)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 14 19:36:21 PST 2023


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 6c2bde9bb944f27b17e942a4828ba1572971336a bbce99d838fba066b157627d6613bf9850c2d8c5 -- openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c
``````````

</details>

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

``````````diff
diff --git a/openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c b/openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c
index 668b5e0915..e3546936e8 100644
--- a/openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c
+++ b/openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c
@@ -59,8 +59,10 @@ int main()
   // CHECK-DAG: {{^}}[[WORKER_ID:[0-9]+]]: ompt_event_implicit_task_begin
 
   // thread_num must be equal to 1 for both explicit and the implicit tasks
-  // CHECK-DAG: {{^}}[[WORKER_ID]]: ancestor_level=0 id=1 task_type=ompt_task_explicit{{.*}}thread_num=1
-  // CHECK-DAG: {{^}}[[WORKER_ID]]: ancestor_level=1 id=0 task_type=ompt_task_implicit{{.*}}thread_num=1
+  // CHECK-DAG: {{^}}[[WORKER_ID]]: ancestor_level=0 id=1
+  // task_type=ompt_task_explicit{{.*}}thread_num=1 CHECK-DAG:
+  // {{^}}[[WORKER_ID]]: ancestor_level=1 id=0
+  // task_type=ompt_task_implicit{{.*}}thread_num=1
 
   return 0;
 }

``````````

</details>


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


More information about the Openmp-commits mailing list