LLVM OpenMP
22.0.0git
runtime
test
ompt
teams
team.c
Go to the documentation of this file.
1
// clang-format off
2
// RUN: %libomp-compile-and-run | FileCheck %s
3
// REQUIRES: ompt
4
// UNSUPPORTED: gcc
5
// Compilation fails for icc
6
// XFAIL: icc
7
// clang-format on
8
#include "
callback.h
"
9
10
int
main
() {
11
#pragma omp target teams num_teams(1) thread_limit(1)
12
{ printf(
"In teams\n"
); }
13
return
0;
14
}
15
16
// clang-format off
17
// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
18
19
// CHECK-NOT: 0: parallel_data initially not null
20
// CHECK-NOT: 0: task_data initially not null
21
// CHECK-NOT: 0: thread_data initially not null
22
23
// CHECK: {{^}}[[MASTER:[0-9]+]]: ompt_event_initial_task_begin:
24
// CHECK-SAME: task_id=[[INIT_TASK:[0-9]+]], {{.*}}, index=1
25
26
// CHECK: {{^}}[[MASTER]]: ompt_event_teams_begin:
27
// CHECK-SAME: parent_task_id=[[INIT_TASK]]
28
// CHECK-SAME: {{.*}} requested_num_teams=1
29
// CHECK-SAME: {{.*}} invoker=[[TEAMS_FLAGS:[0-9]+]]
30
31
// initial task in the teams construct starts
32
// CHECK: {{^}}[[MASTER]]: ompt_event_initial_task_begin:
33
// CHECK-SAME: task_id=[[INIT_TASK_0:[0-9]+]], actual_parallelism=1, index=0
34
35
// parallel region forked by runtime
36
// CHECK: {{^}}[[MASTER]]: ompt_event_parallel_begin:
37
// CHECK-SAME: {{.*}} parent_task_id=[[INIT_TASK_0]]
38
// CHECK-SAME: {{.*}} parallel_id=[[PAR_0:[0-9]+]]
39
// CHECK: {{^}}[[MASTER]]: ompt_event_implicit_task_begin:
40
// CHECK-SAME: {{.*}} parallel_id=[[PAR_0]], task_id=[[IMPL_TASK_0:[0-9]+]]
41
// CHECK: {{^}}[[MASTER]]: ompt_event_implicit_task_end:
42
// CHECK-SAME: {{.*}} parallel_id={{[0-f]+}}, task_id=[[IMPL_TASK_0]]
43
// CHECK: {{^}}[[MASTER]]: ompt_event_parallel_end:
44
// CHECK-SAME: {{.*}} parallel_id=[[PAR_0]], task_id=[[INIT_TASK_0]]
45
46
// initial task in the teams construct ends
47
// CHECK: {{^}}[[MASTER]]: ompt_event_initial_task_end:
48
// CHECK-SAME: task_id=[[INIT_TASK_0]], actual_parallelism=0, index=0
49
50
// CHECK: {{^}}[[MASTER]]: ompt_event_teams_end:
51
// CHECK-SAME: {{.*}} task_id=[[INIT_TASK]], invoker=[[TEAMS_FLAGS]]
52
53
// CHECK: {{^}}[[MASTER]]: ompt_event_initial_task_end:
54
// CHECK-SAME: task_id=[[INIT_TASK]], {{.*}}, index=1
55
// clang-format on
callback.h
main
int main()
Definition
team.c:10
Generated on
for LLVM OpenMP by
1.14.0