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
hidden_helper_task
single_helper_thread.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && env LIBOMP_NUM_HIDDEN_HELPER_THREADS=1 %libomp-run
2
3
// gcc/icc target offloading is incompatible with libomp
4
// UNSUPPORTED: icc, gcc
5
6
// The test checks that "devide-by-0" bug fixed in runtime.
7
// The fix is to increment number of threads by 1 if positive,
8
// so that operation
9
// (gtid) % (__kmp_hidden_helper_threads_num - 1)
10
// does not cause crash.
11
12
#include <stdio.h>
13
#include <omp.h>
14
15
int
main
(){
16
#pragma omp target nowait
17
{
18
printf(
"----- in target region\n"
);
19
}
20
printf(
"------ before taskwait\n"
);
21
#pragma omp taskwait
22
printf(
"passed\n"
);
23
return
0;
24
}
main
int main()
Definition:
single_helper_thread.c:15
Generated on Thu Jun 12 2025 12:16:49 for LLVM OpenMP by
1.9.6