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

via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 24 14:07:45 PST 2023

@@ -59,10 +59,8 @@ int main()
   // CHECK-DAG: {{^}}[[WORKER_ID:[0-9]+]]: ompt_event_implicit_task_begin
jprotze wrote:

I would prefer a different fix: Remove all the MASTER_ID lines, change this line:
  // CHECK: {{^}}[[WORKER_ID:[0-9]+]]: ompt_event_implicit_task_begin{{.*}}thread_num=1
And revert the changes below. 

If the line becomes to long for clang-format, moving the CHECK lines to the end of the file will safe 2 trailing white spaces, `WORKER_ID`-> `WID` will safe another 6 characters, or change ` ompt_event_` -> `{{.*}}`


More information about the Openmp-commits mailing list