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
tasking
omp_task_priority.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && env OMP_MAX_TASK_PRIORITY=42 %libomp-run
2
// Test OMP 4.5 task priorities
3
// Currently only API function and envirable parsing implemented.
4
// Test environment sets envirable: OMP_MAX_TASK_PRIORITY=42 as tested below.
5
#include <stdio.h>
6
#include <omp.h>
7
8
int
main
(
void
) {
9
int
passed;
10
11
passed = (omp_get_max_task_priority() == 42);
12
printf(
"Got %d\n"
, omp_get_max_task_priority());
13
14
if
(passed) {
15
printf(
"passed\n"
);
16
return
0;
17
}
18
19
printf(
"failed\n"
);
20
return
1;
21
}
22
main
int main(void)
Definition:
omp_task_priority.c:8
Generated on Tue Jun 3 2025 06:11:19 for LLVM OpenMP by
1.9.6