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
affinity
bug-nested.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && env KMP_AFFINITY=compact %libomp-run
2
3
#include <stdio.h>
4
#include <stdint.h>
5
#include <omp.h>
6
#include "
omp_testsuite.h
"
7
8
int
test_nested_affinity_bug
() {
9
int
a
= 0;
10
omp_set_nested
(1);
11
#pragma omp parallel num_threads(2) shared(a)
12
{
13
#pragma omp parallel num_threads(2) shared(a) proc_bind(close)
14
{
15
#pragma omp atomic
16
a
++;
17
}
18
}
19
return
1;
20
}
21
22
int
main
() {
23
int
i
;
24
int
num_failed = 0;
25
26
for
(
i
= 0;
i
<
REPETITIONS
;
i
++) {
27
if
(!
test_nested_affinity_bug
()) {
28
num_failed++;
29
}
30
}
31
return
num_failed;
32
}
test_nested_affinity_bug
int test_nested_affinity_bug()
Definition:
bug-nested.c:8
main
int main()
Definition:
bug-nested.c:22
i
#define i
Definition:
kmp_stub.cpp:87
omp_set_nested
#define omp_set_nested
Definition:
kmp_stub.cpp:36
a
int a
Definition:
llvm-issue-80664.c:20
omp_testsuite.h
REPETITIONS
#define REPETITIONS
Definition:
omp_testsuite.h:13
Generated on Mon Jun 9 2025 17:00:14 for LLVM OpenMP by
1.9.6