LLVM OpenMP
22.0.0git
runtime
test
ompt
misc
finalize_tool.c
Go to the documentation of this file.
1
// clang-format off
2
// RUN: %libomp-compile-and-run | FileCheck %s
3
// REQUIRES: ompt
4
// clang-format on
5
#include "
callback.h
"
6
#include "
omp_testsuite.h
"
7
8
int
main
() {
9
go_parallel_nthreads
(2);
10
11
printf(
"Before ompt_finalize_tool\n"
);
12
ompt_finalize_tool
();
13
printf(
"After ompt_finalize_tool\n"
);
14
15
return
get_exit_value
();
16
}
17
18
// clang-format off
19
// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
20
// CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_thread_begin:
21
// CHECK-SAME: thread_type=ompt_thread_initial=1
22
23
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_begin
24
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_end
25
26
// CHECK: {{^}}Before ompt_finalize_tool
27
28
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_thread_end: thread_id=[[THREAD_ID]]
29
// CHECK: 0: ompt_event_runtime_shutdown
30
31
// CHECK: {{^}}After ompt_finalize_tool
32
// clang-format on
callback.h
ompt_finalize_tool
static ompt_finalize_tool_t ompt_finalize_tool
Definition
callback.h:161
main
int main()
Definition
finalize_tool.c:8
omp_testsuite.h
go_parallel_nthreads
static void go_parallel_nthreads(int nthreads)
Definition
omp_testsuite.h:37
get_exit_value
static int get_exit_value()
Definition
omp_testsuite.h:73
Generated on
for LLVM OpenMP by
1.14.0