LLVM OpenMP
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
c
d
e
g
h
i
m
n
p
r
s
t
u
Functions
c
d
e
g
i
m
n
p
r
s
u
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
i
k
l
m
n
o
p
r
t
u
Enumerations
_
b
c
d
f
k
l
n
o
s
t
Enumerator
_
a
b
c
d
e
f
k
l
n
o
p
r
s
t
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
runtime
test
ompt
misc
finalize_tool.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run | FileCheck %s
2
// REQUIRES: ompt
3
#include "
callback.h
"
4
#include "
omp_testsuite.h
"
5
6
int
main
() {
7
go_parallel_nthreads
(2);
8
9
printf(
"Before ompt_finalize_tool\n"
);
10
ompt_finalize_tool
();
11
printf(
"After ompt_finalize_tool\n"
);
12
13
return
get_exit_value
();
14
}
15
16
// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
17
// CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_thread_begin:
18
// CHECK-SAME: thread_type=ompt_thread_initial=1
19
20
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_begin
21
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_parallel_end
22
23
// CHECK: {{^}}Before ompt_finalize_tool
24
25
// CHECK: {{^}}[[THREAD_ID]]: ompt_event_thread_end: thread_id=[[THREAD_ID]]
26
// CHECK: 0: ompt_event_runtime_shutdown
27
28
// CHECK: {{^}}After ompt_finalize_tool
callback.h
ompt_finalize_tool
static ompt_finalize_tool_t ompt_finalize_tool
Definition:
callback.h:140
main
int main()
Definition:
finalize_tool.c:6
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 Sat Jun 14 2025 07:53:25 for LLVM OpenMP by
1.9.6