Skip to content

Commit d6f0065

Browse files
authored
[OpenMP][Runtime][test] Fix ompt task testcase fail randomly (#72337)
Fixed #72231
1 parent 6b89fab commit d6f0065

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

openmp/runtime/test/ompt/tasks/explicit_task_thread_num.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ int main()
5555

5656
// parallel region used only to determine worker thread id
5757
// CHECK: {{^}}[[MASTER_ID]]: ompt_event_parallel_begin
58-
// CHECK-DAG: {{^}}[[MASTER_ID]]: ompt_event_implicit_task_begin
59-
// CHECK-DAG: {{^}}[[WORKER_ID:[0-9]+]]: ompt_event_implicit_task_begin
58+
// CHECK: {{^}}[[WID:[0-9]+]]: ompt_event_implicit_task{{.*}}thread_num=1
6059

6160
// thread_num must be equal to 1 for both explicit and the implicit tasks
62-
// CHECK: {{^}}[[WORKER_ID]]: ancestor_level=0 id=1 task_type=ompt_task_explicit
61+
// CHECK: {{^}}[[WID]]: ancestor_level=0 id=1 task_type=ompt_task_explicit
6362
// CHECK-SAME: thread_num=1
64-
// CHECK: {{^}}[[WORKER_ID]]: ancestor_level=1 id=0 task_type=ompt_task_implicit
63+
// CHECK: {{^}}[[WID]]: ancestor_level=1 id=0 task_type=ompt_task_implicit
6564
// CHECK-SAME: thread_num=1
6665

6766
return 0;

0 commit comments

Comments
 (0)