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_get_device_num.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run
2
// Linking fails for icc 18
3
// UNSUPPORTED: icc-18
4
5
#include <stdio.h>
6
#include "
omp_testsuite.h
"
7
8
int
test_omp_get_device_num
()
9
{
10
/* checks that omp_get_device_num */
11
int
device_num = omp_get_device_num();
12
13
return
(device_num == omp_get_num_devices());
14
}
15
16
int
main
()
17
{
18
int
i
;
19
int
num_failed=0;
20
21
for
(
i
= 0;
i
<
REPETITIONS
;
i
++) {
22
if
(!
test_omp_get_device_num
()) {
23
num_failed++;
24
}
25
}
26
return
num_failed;
27
}
i
#define i
Definition:
kmp_stub.cpp:87
test_omp_get_device_num
int test_omp_get_device_num()
Definition:
omp_get_device_num.c:8
main
int main()
Definition:
omp_get_device_num.c:16
omp_testsuite.h
REPETITIONS
#define REPETITIONS
Definition:
omp_testsuite.h:13
Generated on Tue Jun 10 2025 14:23:49 for LLVM OpenMP by
1.9.6