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
api
omp_nteams_api_env.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && env OMP_NUM_TEAMS=5 OMP_TEAMS_THREAD_LIMIT=7 %libomp-run
2
3
#include <stdio.h>
4
#include <stdlib.h>
5
#include <omp.h>
6
7
int
main
(
int
argc,
char
** argv)
8
{
9
int
iset, iget;
10
iset = 5;
11
iget = omp_get_max_teams();
12
if
(iset != iget) {
13
fprintf(stderr,
"error: nteams-var set to %d, getter returned %d\n"
, iset, iget);
14
exit(1);
15
}
16
iset = 7;
17
iget = omp_get_teams_thread_limit();
18
if
(iset != iget) {
19
fprintf(stderr,
"error: teams-thread-limit-var set to %d, getter returned %d\n"
, iset, iget);
20
exit(1);
21
}
22
printf(
"passed\n"
);
23
return
0;
24
}
main
int main()
Definition:
test-touch.c:21
Generated on Fri Jun 6 2025 23:29:16 for LLVM OpenMP by
1.9.6