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
parallel
bug63197.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run | FileCheck %s
2
3
#include <omp.h>
4
#include <stdio.h>
5
6
int
main
(
int
argc,
char
*argv[]) {
7
#pragma omp parallel num_threads(3) if (0)
8
#pragma omp single
9
{ printf(
"BBB %2d\n"
,
omp_get_num_threads
()); }
10
11
#pragma omp parallel
12
#pragma omp single
13
{
14
if
(
omp_get_num_threads
() != 3)
15
printf(
"PASS\n"
);
16
}
17
return
0;
18
}
19
20
// CHECK: PASS
omp_get_num_threads
int omp_get_num_threads()
main
int main()
Definition:
test-touch.c:21
Generated on Mon Jun 2 2025 08:26:51 for LLVM OpenMP by
1.9.6